阅读背景:

如何捕获jQuery $。getJSON(或美元。将数据类型设置为“jsonp”的ajax在使用jsonp时出错?

来源:互联网 

Is it possible to catch an error when using JSONP with jQuery? I've tried both the $.getJSON and $.ajax methods but neither will catch the 404 error I'm testing. Here is what I've tried (keep in mind that these all work successfully, but I want to handle the case when it fails):Is it possible to catch an error when using JSO




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: