【发布时间】:2017-02-27 13:36:30
【问题描述】:
我们的应用程序中有 ajax 调用,如下所示。每次左侧菜单单击都会调用它。但有时我们会收到 12019 错误。我们找不到任何其他错误详细信息。只是我们将 'xhr.status' 设为 12019。
$.ajax({
type : 'POST',
url : requestURI,
cache : false,
data : formData,
success : function(data) {
$('#centerContentModel').html(data);
ShowLayer();
},
error : function (xhr, errorType, thrownError) {
alert("Status : "+xhr.status+" :: StatusText : " + xhr.statusText +" :: ErrorType : " + errorType);
window.location.href = "/timeout.jsp";
}
有人对此有任何想法吗?
【问题讨论】:
-
此链接建议“使用 IE10 将解决问题”。但是我们在 IE 10 中也遇到了这个问题。
-
您在 Chrome 和 IE 上都看到了这种行为吗? (如果我理解这个问题,这是一个随机问题)
-
是的,但在 IE 的情况下频率更高。
标签: javascript jquery ajax internet-explorer error-handling