javascript 页面跳转方法集合



[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

window.location和window.open的区别
window.location = "http://www.phpstudy.net" 跳转后有后退功能
window.location.replace("http://www.phpstudy.net") 跳转后没有后退功能
window.open("http://www.phpstudy.net") 要新的窗口打开链接
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3