vue.js - vue js,IE9点击路由器链接刷新?
问题描述
vue js 在不支持 History API pushState 的 IE9(Internet Explorer 9)中,在路由器链接点击时刷新是否正确?不能像 Chrome 或 IE10 那样在不刷新的情况下切换页面吗?
解决方案
您可以查看这篇文章并使用它来创建用于声明式导航的锚标记。
您可能已经注意到router.push
和是router.replace
和router.go
的对应物,window.history.pushState
它们确实模仿了 window.history API。window.history.replaceState
window.history.go
推荐阅读
- javascript - 如何在传单地图中添加图例
- java - 尝试使用 pdfcompare Java 库读取 PDF 时没有 Unicode 映射警告
- vue.js - 如何在 Vue 中增加加载更多数据的 url 编号
- measurement-protocol - 是否可以从后端 Java 服务器(通过 Measurement Protocol)向 Google Analytics 发送事件?
- javascript - 尝试在 laravel Carbon 生成日期上使用 javascript 获取日期
- python - 导入错误:无法从“object_detection”导入名称“model_lib_v2”
- python - 如何进行超像素图像分割和特征提取
- android - recyclerview 动态数据中的多语言支持不起作用
- excel - 如果单元格为真,则从另一列获取值
- c++ - 使用 SFML (macOS) 手动链接和编译 C++ 程序