xinping7he

Results comments of xinping7he

hash模式: 1、hash值是url中#及后面的部分 2、hash值改变不会引起页面刷新 3、hash值的改变会触发hashchange事件 history模式: 1、利用history.pushState来完成url跳转而无需刷新页面 2、需要后台配置支持,如果URL 匹配不到任何静态资源,服务器应该返回应用依赖的 index.html 页面