完美解决ie浏览器location.href不刷新页面的问题,进入页面只刷新一次
/* ie不刷新列表bug */
try{
var agent = navigator.userAgent.toLowerCase();
var ieflag = /(msie\s|trident.*rv:)([\w.]+)/.test(agent);
if(ieflag){
window.num = Number(window.localStorage.getItem("num"));
var num = window.num++;
if(window.num == 2){
window.localStorage.removeItem("num");
window.location.reload();
}
}
}catch(e){
}