0
xhr = $.ajax;
xhr({
success: function(){ ajaxProcess = false; },
beforeSend : function (i) {
if(ajaxProcess==true)
xhr.abort();
else
ajaxProcess = true;
}
});
$('.button').click(function(){
$.getJSON('file.php', function(data){});
};
$('.button2').click(function(){
$.getJSON('file.php', function(data){});
};
如何停止正在運行的ajax進程 – misima 2011-01-22 19:53:22