终止ajax异步请求——abort()

var xhr=$.ajax();

xhr.abort();//在终止之前要确定xhr不为空

原文地址:https://www.cnblogs.com/yueliangcl/p/6699119.html