router的hash模式和history模式

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