我是帅哥
2015-04-21 17:52
window.location.href="http://www.baidu.com"; 怎样加target=_blank 属性呢?
window.location.href是改变当前标签页的url
如果要你那样的话应该使用window.open("http://www.baidu.com", "_blank" )
JavaScript进阶篇
468868 学习 · 22582 问题
相似问题
回答 3
回答 5
回答 2