ajax请求成功或失败的参数

success:function(response, status, xhr){

},
error:function(xhr, errorText, errorType){
alert(errorText+":"+errorType); --error:not found
alert(xhr.status+":"+xhr.statusText);--404:not found
}

原文地址:https://www.cnblogs.com/annie211/p/6031368.html