jq放弃ajax请求

mmywcoco 2020-06-10

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

相关推荐

mmywcoco / 0评论 2020-06-06