瀏覽器 history location pushstate的解決疑問

window.location瀏覽器 1這個方法 默認是 跟路徑的  ,這樣會替代 最後一段子路徑,url 2.如果添加的 「# ******」,則不是替換 而是追加spa 注意 替換和追加 的區別。事件 同時,it pushstate的方法 io pushHistory();  window.addEventListener("popstate", function(e) {  alert("我
相關文章
相關標籤/搜索