$.ajax({
//...
success: function(data,
textStatus, xhr) {
console.log(xhr.status);
},
complete: function(xhr,
textStatus) {
console.log(xhr.status);
}
});
$.ajax({
statusCode: {
500: function(xhr) {
if(window.console) console.log(xhr.responseText);
}
}
});
沒有留言:
張貼留言