📜  window.history.pushstate 打字稿 - Javascript 代码示例

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

代码示例1
const url = new URL(window.location.href);
url.searchParams.set("key", "value");
const href = url.toString();
window.history.pushState({}, '', href);