用$.ajax abort()防止重复请求,当然方法有很多:
var request; if(request != null) request.abort(); request = $.get("ajax.aspx",{id:1},function(){ //do something });原文链接:https://www.f2er.com/ajax/161497.html
用$.ajax abort()防止重复请求,当然方法有很多:
var request; if(request != null) request.abort(); request = $.get("ajax.aspx",{id:1},function(){ //do something });原文链接:https://www.f2er.com/ajax/161497.html