📜  js 窗口历史记录 - Javascript 代码示例

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

代码示例2
var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + '?newParameter=1';
window.history.pushState({ path: newurl }, '', newurl);