在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