당신은 $.ajax(complete:function(responseText, textStatus, XMLHttpRequest)){});
에 등록하고 textStatus 값을 확인해야합니다. 확인을 경우, 다음 대상 $('selector')
자신
$.get("formPage.php").success(
function(response, status, jqXhr){
alert("Success!");
}).error(function (response, status, jqXhr){
alert("These is error.");
}).complete(function (response, status, jqXhr){
alert("Complete!");
});
또는
$("#pageToLoad").load("formPage.php", function(response, status, xhr) {
if (status == "error") {
var msg = "Sorry but there was an error: ";
$("#error").html(msg + xhr.status + " " + xhr.statusText);
}
});