success: function(data) {
},
error: function(jqXHR, textStatus, errorThrown) {
ajaxERROR(jqXHR, textStatus, errorThrown);
}
接收
function ajaxErrorListener(xhr, status, error) {
console.log(xhr.responseJSON);
console.log(xhr.statusText);
console.log(xhr.status);
console.log(error);
}
有時候接收到的錯誤就只會有
undefined
error
code: 0
完全不知道發生什麼事
請問如何接收到完整錯誤?
我的一般处理都是
不知道我们用法是不是相同。