//返回刷新
window.addEventListener('pageshow', function(event) {
//event.persisted属性为true时,表示当前文档是从往返缓存中获取
if(event.persisted) {
location.reload();
}
});
转载于:https://www.cnblogs.com/chengyunshen/p/10020702.html
//返回刷新
window.addEventListener('pageshow', function(event) {
//event.persisted属性为true时,表示当前文档是从往返缓存中获取
if(event.persisted) {
location.reload();
}
});
转载于:https://www.cnblogs.com/chengyunshen/p/10020702.html