Window:navigation 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-cn/web/api/navigation_api/index.md)
Window
接口的 navigation
只读属性返回当前 window
关联的 Navigation
对象。
这是 Navigation API 的入口点。
值
Navigation
对象实例。
示例
js
let currentNavEntries = window.navigation.entries();
规范
Specification |
---|
HTML Standard # dom-navigation |
浏览器兼容性
BCD tables only load in the browser
参见
- 新型客户端路由:Navigation API
- Navigation API 解释
- Domenic Denicola 的 Navigation API 在线演示