移动端浏览器 网页缓存

1 //移动端浏览器 网页缓存
2         window.addEventListener('pageshow', function(event) {
3             
4             if(event.persisted || window.performance && 
5             window.performance.navigation.type == 2){
6                 alert(111)
7                 location.reload();
8             }
9         })

 

posted @ 2019-01-09 15:20  橙云生  阅读(516)  评论(0编辑  收藏  举报