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.