if (window.history && window.history.pushState) {
$(window).on('popstate', function () {
window.history.pushState('forward', null, '#');
window.history.forward(1);
});
}
window.history.pushState('forward', null, '#'); //在IE中必须得有这两行
window.history.forward(1);
以上防止IE11登录成功后返回到登录界面。
IE11 返回缓存
最新推荐文章于 2022-08-05 10:09:37 发布