移动端小米浏览器:
从列表页进入详情页后返回(history.go(-1)),首次进入详情页可以正常加载js,返回后再进入,js不加载。
求大神指点
可以试着绑定js的 pageshow 和pagehide事件
可参考http://hzxiaosheng.bitbucket.org/work/2015/09/23/refresh-webpage-on-history-back-for-mobile-browser-and-webview.html
移动端小米浏览器:
从列表页进入详情页后返回(history.go(-1)),首次进入详情页可以正常加载js,返回后再进入,js不加载。
求大神指点
可以试着绑定js的 pageshow 和pagehide事件
可参考http://hzxiaosheng.bitbucket.org/work/2015/09/23/refresh-webpage-on-history-back-for-mobile-browser-and-webview.html