$.getJson not working in IE

前端 未结 3 684
迷失自我
迷失自我 2021-01-18 04:48

Ok, for some reason my getJson is not working. I am pulling some stock information and it works in all major browsers except IE.

I have created a JSfiddle here: htt

3条回答
  •  走了就别回头了
    2021-01-18 05:34

    Since its a old post this answer may be helpful to other seekers.

    There may be two reasons why getJson not working in IE.

    1.Either Jsonp requests which resolved by adding

     &callback=? or &callback=?
    

    2.Set ajax catch.

    $.ajaxSetup({ cache: false });
    

    If still you have problem, it may be because of the cross-platform API usage.

提交回复
热议问题