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";
};
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: java怎么远程调用shell脚本