router的hash模式和history模式

vue-router的hash模式是默认模式,history模式利用了history.pushState。vue 1.hash模式和history模式的区别vue-router hash —— 即地址栏 URL 中的 # 符号(此 hash 不是密码学里的散列运算)。好比这个 URL:http://www.abc.com/#/hello,hash 的值为 #/hello。它的特色在于:hash 虽
相关文章
相关标签/搜索