摘要:
(function($){ $.oneAjax = function(settings){ if ($.oneAjax[settings.guid] === "isProcessing") { return false; } $.oneAjax[settings.guid] = "isProcessing"; return $.ajax(settings).complete(function() { delete $.oneAjax[settings.guid]; }); };})(jQuery);调用方式和ajax一模一样只是加了一个guid参数而已$ 阅读全文