实现页面跳转 我们可以利用http的重定向来跳转 window.location.replace("http://www.jb51.net"); 使用href来跳转 window.location.href = "http://www.jb51.net";