JavaScript实现页面跳转的八种方式包括:
window.location.href = "http://www.example.com";
location.replace("http://www.example.com");
location.assign("http://www.example.com");
location.reload();
window.open("http://www.example.com");
document.location = "http://www.example.com";
setTimeout(function(){
location.href = "http://www.example.com";
}, 2000);
window.onload = function(){
location.href = "http://www.example.com";
};