$.ajaxSetup({ cache: false }); $.getJSON("/MyQueryUrl",function(data,item) { // do stuff with callback data $.ajaxSetup({ cache: true }); });
原因:getJson在IE下IE下默认会使用浏览器缓存,所以导致数据不显示 @H_301_0@解决:让其不要使用缓存 @H_301_0@这里有更多的解决方法 @H_301_0@http://stackoverflow.com/questions/264216/getjson-returning-cached-data-in-ie8