function test(){ var url="__SELF__"; if(typeof(current_request)!="undefined"){ current_request.abort(); } current_request=$.ajax({ url:url,success:function(msg){ console.log(msg); },error:function(){ },complete:function(XHR,TS){ XHR=null; } }); }
function test(){ var url="__SELF__"; if(typeof(current_request)!="undefined"){ current_request.abort(); } current_request=$.ajax({ url:url,success:function(msg){ console.log(msg); },error:function(){ },complete:function(XHR,TS){ XHR=null; } }); }