vue history 模式(路由)

vue 裏面路由有兩種顯示模式是hash和history,默認是hashjavascript hash —— 即地址欄 URL 中的 # 符號(此 hash 不是密碼學裏的散列運算)。好比這個 URL:http://www.abc.com/#/hello,hash 的值爲 #/hello。它的特色在於:hash 雖然出如今 URL 中,但不會被包括在 HTTP 請求中,對後端徹底沒有影響,所以改變
相關文章
相關標籤/搜索