【问题标题】:vue js, IE9 click on the router link to refresh?vue js,IE9点击路由器链接刷新?
【发布时间】:2019-10-21 17:08:53
【问题描述】:

Vue.js 在不支持 History API pushState 的 IE9(Internet Explorer 9)中,在路由器链接点击时刷新是否正确? 不能像 Chrome 或 IE10 那样在不刷新的情况下切换页面吗?

【问题讨论】:

    标签: vue.js internet-explorer-9


    【解决方案1】:

    您可以检查this article 并使用它来创建用于声明式导航的锚标记。

    您可能已经注意到 router.pushrouter.replacerouter.gowindow.history.pushStatewindow.history.replaceStatewindow.history.replaceStatewindow.history.go 的对应物,它们确实模仿了 window.history API。

    【讨论】:

      猜你喜欢
      • 2021-09-13
      • 2021-11-22
      • 2018-07-29
      • 1970-01-01
      • 2019-11-18
      • 2019-02-21
      • 2018-02-10
      • 2023-04-08
      • 2021-10-14
      相关资源
      最近更新 更多