📜  窗口位置重定向 javascript 代码示例

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

代码示例3
// similar as an HTTP redirect, page will be not in browser history
window.location.replace("/replaced.html");

// similar as clicking on a link, page will be on history :-)
window.location.href = "/replaced.html";