简体   繁体   中英

Jquery jsonp error callback

I am currently doing a nanodegree on udacity and in one of my project I had to make a jsonp request to wikimedia api and it requires a jsonp request to be made on api.The project requires all api call back to have a error function.However,after several trial of error and research,i came to know that jquery doesnt invoke a error callback on jsonp request and instead utilised a timeout workaround on ajax call.However,my code reviewers says that jquery above v2.0. supports error callback.However,a lot of research on the topic convinces me that he is not right.And yes I checked official documentation and it says like as of jquery 1.5..error call back is not called for jsonp request.Can you guys help me out here and confirm that there is no error handling for jsonp request in any version of jquery?

是的,我的审核者是对的。我使用的jQuery 2.2.4确实支持jsonp请求失败方法。谢谢大家。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM