📅  最后修改于: 2022-03-11 15:01:29.459000             🧑  作者: Mango
// 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";