$.getJSON returning cached data in IE8

前端 未结 7 1437
隐瞒了意图╮
隐瞒了意图╮ 2020-11-29 16:38

I\'m playing around with ASP.net MVC and JQuery at the moment. I\'ve come across behavour which doesn\'t seem to make sense.

I\'m calling JQuery\'s $.getJSON

7条回答
  •  执笔经年
    2020-11-29 17:05

    Ready for THE answer ?

    http://lestopher.tumblr.com/post/21742012438/if-youre-using-ie8-and-getjson

    So, just add

    jQuery.support.cors = true;  
    

    at the beginning of your script and BANG it works !

提交回复
热议问题