Đoạn code check lỗi PHP trong Ajax

success: function (obj) {
},
error: function (xhr) {
  alert('Request Status: ' + xhr.status + ' Status Text: ' + xhr.statusText + ' ' + xhr.responseText);
},
complete: function () {
}

Last updated