Javascript 页面跳转方法
//在当前页面打开
location.href="http://www.google.cn/";
window.location.href="http://www.google.cn/";
//后退到前一页面
history.go(-1);
//在新页面打开
window.open('http://www.google.cn/','','height=500,width=611,scrollbars=yes,status=yes');
每天学习一点点!
可以平凡 不可以平庸 无爱则无忧,无欲则无求,无怒而无敌,无怨才是佛。所有烦恼,都是放不下的执著 开源技群 328035181 MyGitee
//在当前页面打开
location.href="http://www.google.cn/";
window.location.href="http://www.google.cn/";
//后退到前一页面
history.go(-1);
//在新页面打开
window.open('http://www.google.cn/','','height=500,width=611,scrollbars=yes,status=yes');
每天学习一点点!