vue-router
26 Sep 2018- History
API
核心是使用 HTML window.history
API
- vm
- $options
- _parentVnode
- $router
- $route
- $options
Vue.util.defineReactive(
- window
- location
- ancestorOrigins: DOMStringList {length: 0}
- assign: ƒ ()
hash
: “#html”- host: “router.vuejs.org”
- hostname: “router.vuejs.org”
- href: “https://router.vuejs.org/guide/#html”
- origin: “https://router.vuejs.org”
- pathname: “/guide/”
- port: “”
- protocol: “https:”
- reload: ƒ reload()
- replace: ƒ ()
search
: “”- toString: ƒ toString()
- history
- performance
- Performance Timeline API,
- the High Resolution Time API,
- the Navigation Timing API,
- the User Timing API,
- the Resource Timing API.
- location
因为安全的问题, 不能获取 history stack 列表, 只能 push pop 操作。