首页 > 解决方案 > vue js,IE9点击路由器链接刷新?

问题描述

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

标签: vue.jsinternet-explorer-9

解决方案


您可以查看这篇文章并使用它来创建用于声明式导航的锚标记。

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


推荐阅读