1.取得瀏覽器網(wǎng)址的地址
let currentUrl =? window.location.href
2.獲取url具體字段

pic
3.代碼替換瀏覽器中的key和value值

pic
4.取得瀏覽器的值并decode到數(shù)據(jù)

IE9
其中IE9無法編譯%這個特殊字段,對其進行了特殊處理
5.利用vue hash的方式,在不刷新頁面的情況下,對網(wǎng)址進行改變的操作,使用history.replaceState,為了兼容IE9,只能使用window.open
