📜  如何在 html 页面之间切换 - Html 代码示例

📅  最后修改于: 2022-03-11 14:52:52.453000             🧑  作者: Mango

代码示例1
function change_page(){
   // similar behavior as an HTTP redirect
   window.location.replace("test.html");
   //or
   // similar behavior as clicking on a link
   window.location.href = "test.html";
};