IOS浏览器返回刷新页面

$(function () {
var isPageHide = false;
window.addEventListener('pageshow', function () {
if (isPageHide) {
window.location.reload();
}
});
window.addEventListener('pagehide', function () {
isPageHide = true;
});
})

posted @ 2017-08-08 16:27  。°Sen  阅读(655)  评论(0编辑  收藏  举报