微信浏览器H5页面后退并刷新

const json = {time:new Date().getTime()};
const url = window.location.href;
const newHistoryUrl = url+"?t="+new Date().getTime();
window.history.replaceState(json,"",newHistoryUrl);//这样设置再次回到当前页就会刷新
window.location.href = "这里是你要跳转的页面";

你可能感兴趣的:(html,前端,javascript,html)