I want to have a global error handling method for ajax calls, this is what I have now:
$.ajaxSetup({
error: function (XMLHttpRequest, textStatus, errorThrown) {
displayError();
}
});
我需要忽略aborted
的误差.errorThrown
为空,textStatus
为error
.我怎么才能查到aborted
美元呢?