在后退的界面上添加 判断是否是返回
window.addEventListener(‘pageshow‘, function (e) {
if(e.persisted || (window.performance && window.performance.navigation.type == 2)){
window.location.reload()
}
});
2023-09-29 15:55:22
在后退的界面上添加 判断是否是返回
window.addEventListener(‘pageshow‘, function (e) {
if(e.persisted || (window.performance && window.performance.navigation.type == 2)){
window.location.reload()
}
});