$.ajax({
url: "captcheck.php",
type: "GET",
data: "code="+captcha.val(),
cache: false,
success: function (html) {
if (html==1) {
captcha.removeClass('validation-error',animateSpeed);
return true;
}
else {
captcha.addClass('validation-error',animateSpeed);
return false;
}
},
error: function(httpRequest, textStatus, errorThrown) {
alert("status=" + textStatus + ",error=" + errorThrown);
}
});
现在,这是一个非常简单的Ajax功能,但也不是其成功获取调用,也不错误,我查了XHR与响应的萤火虫和完善,仍没有成功或错误被调用。任何人都可以帮忙吗?