点击浏览器返回按钮,刷新页面

当点击浏览器返回按钮时,默认使用历史页面的缓存,不会重新加载数据

if(window.name != "bencalie"){
    location.reload();
    window.name = "bencalie";
}
else{
    window.name = "";
}

猜你喜欢

转载自blog.csdn.net/leaves_story/article/details/84776927
今日推荐