【发布时间】:2013-12-10 08:40:11
【问题描述】:
我打了一个 ajax 调用:
$.ajax({
url: 'Login.aspx/AuthenticateRegularUser',
type: 'POST',
contentType: 'application/json; charset=utf-8',
async: true,
dataType: "json",
data: '{ "emailAddress": "' + emailAddress + '","password": "' + password + '","verificationCode": "' + verificationCode + '" }',
success: function(Result) {
if (Result != "") {
var ClientResponse = JSON.parse(Result.d);
if (ClientResponse.Success) {
//DO SUCCESS
}
else {
//DO FAIL
}
}
},
error: function(xhr, textStatus, errorThrown) {
//DO ERROR
}
});
大多数时候一切正常,我收到成功回调。 但是我的一个客户有一个问题,有时操作在服务器上成功完成,但我收到一个错误回调,错误为空。 jqXHR 为空,textStatus = "" 和 null errorThrown。
知道为什么吗?
【问题讨论】: