📌  相关文章
📜  在不重新加载页面的情况下更改 URL - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:49.007000             🧑  作者: Mango

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