📌  相关文章
📜  javascript 在不重新加载的情况下更改 url - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:42.458000             🧑  作者: Mango

代码示例5
function processAjaxData(response, urlPath){
     document.getElementById("content").innerHTML = response.html;
     document.title = response.pageTitle;
     window.history.pushState({"html":response.html,"pageTitle":response.pageTitle},"", urlPath);
 }