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