window.history.go(-1);后退不刷新问题 移动端

在后退的界面上添加 判断是否是返回
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