window.onpageshow = function (e) {
 if (e.persisted) {
    window.location.reload(true);
 }
}

前后端分离使用微信登录回调后退到html页面时  iphone不执行刷新,使用上面代码可以解决,android也支持

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-11
  • 2021-07-04
相关资源
相似解决方案