Jquery ajax error callback

后端 未结 6 1919
暖寄归人
暖寄归人 2020-11-28 09:08

I need some suggestions here or maybe some explanations. I have a jquery ajax call,

$.ajax({
 type: \"GET\",
 url: base_url+\'/ajax/fetch/counts/\',
 dataTyp         


        
6条回答
  •  旧时难觅i
    2020-11-28 09:51

    I'm not a jQuery expert, but I know that bwith Prototype.js, the AJAX error handler fires if the request is successful but the success handler causes an an error. Is that the same in jQuery? You could test if this is what's happening by putting the entire contents of display_counts in a try..catch block.

提交回复
热议问题