完全搞懂路由跳转:location 和 history 接口

在单页应用中,一般由前端来配置路由,根据不一样的 url 显示不一样的内容。想要知道这是如何作到的,首先得了解浏览器提供的两大 API:前端 window.locationvue location.href location.hash location.search location.pathname window.historyvue-router history.pushState() his
相关文章
相关标签/搜索