[英]jquery ajax callback not working
please helppp :/ I swear to GOD this things was working yesterday pretty well. 请helppp:/我向上帝发誓,昨天的事情运行良好。 Just broke today, dont know why.
今天刚破产,不知道为什么。 but the done callback from $.ajax is not firing.
但是$ .ajax中的已完成回调未触发。
function check() {
$.ajax({
url: "/statistics/setup-Table",
dataType : "json",
success: function(data){
alert("check "+data['total']);
}
}).done(function(){
alert("done");
}).fail(function(){
alert("fail");
}).always(function(){
alert("always");
});
}
i only get one alert >> "check 24" 我只收到一个警报>>“检查24”
no alerts from done, fail or always pops up. 没有完成,失败或始终弹出的警报。 even for the other $.ajax calls, callback functions are not getting fired.
即使对于其他$ .ajax调用,回调函数也不会被触发。 The url is fine too.
该网址也很好。
Thanks in advance. 提前致谢。
It was the version I was using of Jquery that messed things up. 正是我使用的Jquery版本使事情搞砸了。 the CDN that is.
是CDN。 Kevin B - thank you much .that really helped.
凯文B-非常感谢。那真的很有帮助。 Thank you to all the rest as well who looked into it for me .
还要感谢其余为我研究的人。 You guys r amazing, i love this community.
你们真了不起,我喜欢这个社区。 i hope i can help back as well ..
我希望我也能提供帮助。
later guys. 后来的家伙。 :)
:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.