📜  js 重定向 - Javascript 代码示例

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

代码示例6
// 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";