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
}

posted @ 2016-11-04 18:21  2350305682  阅读(956)  评论(0编辑  收藏  举报