如果帮助到您,请轻点【喜欢】
bfcache/pageshow event - event.persisted 总是 false,
stackoverflow上看到如下办法,具体含义未查:
window.addEventListener('pageshow', function (event) {
if (event.persisted || window.performance &&
window.performance.navigation.type == 2)
{
location.reload();
}
},false);
大前端知识库收集分享 www.rjxgc.com 壹玖零Tech
搜罗各种前后端奇淫技巧,花式编程思想,日日更新,速来围观吧...