$.getJson("/item/desc"+data.id,function(_data){...});
在IE浏览器下,
若每次请求的URL都一样时,
其会直接读取缓存中已有的数据,而不去查找数据库,因此每次显示的都是旧数据。
解决方法:
$.ajaxSetup({ cache:false }); //其会在url后面加一个时间戳 例如:http://localhost:8080/item/desc/id?_=1546513556
$.getJson("/item/desc"+data.id,function(_data){
.........
$.ajaxSetup( { cache:true} );
});