jq放弃ajax请求

//防止重复请求: 
var request; 
 
if(request != null) 
    request.abort(); 
 
request = $.get("ajax.aspx",{id:1},function(){ 
    //do something 
});

相关推荐