webview-h5页面刷新

问题:webview 缓存了index.html页面;浏览器缓存了子页面。
解决方案:网页链接后添加时间戳。

第一:避免webView缓存】
在service.vue中,给url后边添加时间戳

第二:避免浏览器缓存
在index.html页,使用js给所有不需要缓存的a标签添加时间戳(用js修改a标签的href属性)

猜你喜欢

转载自www.cnblogs.com/heroljy/p/12080735.html
今日推荐