1、问题
在微信浏览器中,需要时刷新当前页面。
正常情况下我们直接使用 location.reload 方法来刷新。
2、解决方法
function realod(){
var {search,href} = window.location;
href = href.replace(/&?t_reload=(\d+)/g,'')
window.location.href = href+(search?'&':'?')+"t_reload="+new Date().getTime()
}
3、转载自:https://blog.csdn.net/qq_38323724/article/details/84967734
To approve a single suggestion, mouse over it and click "✔"
Click the bubble to approve all of its suggestions.