在window.location=url后面加上一個時間戳,即動態獲取的一個時間參數。
即,將window.location=url改為window.location=url?+時間參數
//以下添加時間戳的方法,經過她本人測試后還是無法解決。
window.location.href = url +'?v='+ (new Date().getTime())
//不兼容安卓,增加時間或隨機數
window.location.href = url +'?timestamp='+ new Date().getTime()+Math.random();
————————————————
/**/部分華為手機好像不支持localStorage 存儲
版權聲明:本文為CSDN博主「monkeyfly007」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/tel13259437538/article/details/80850637