//业务需要跳转的页面
let needRefresh = sessionStorage.getItem("need-refresh");
if(needRefresh){
sessionStorage.removeItem("need-refresh");
location.reload();
}
//然后被跳转的页:
sessionStorage.setItem("need-refresh", true);
//业务需要跳转的页面
let needRefresh = sessionStorage.getItem("need-refresh");
if(needRefresh){
sessionStorage.removeItem("need-refresh");
location.reload();
}
//然后被跳转的页:
sessionStorage.setItem("need-refresh", true);
本文标题:微信浏览器挖坑:完美解决微信页面返回/跳转不刷新的问题
本文链接:https://www.haomeiwen.com/subject/seqqmctx.html
网友评论