window.history.go(-1);后退不刷新问题 移动端
时间:2021-06-30 18:41:04
收藏:0
阅读:20
在后退的界面上添加 判断是否是返回
window.addEventListener(‘pageshow‘, function (e) {
if(e.persisted || (window.performance && window.performance.navigation.type == 2)){
window.location.reload()
}
});
原文:https://www.cnblogs.com/wangxirui/p/14953643.html
评论(0)