如何在angularjs中打开一个新窗口(而不是tab)

时间:2014-09-09 20:43:52

标签: angularjs

我知道$ window.open()会打开一个指定了url的新选项卡,但有没有办法打开一个新窗口?有些人在挖掘,无法找到任何东西。

1 个答案:

答案 0 :(得分:4)

使用window.open method的第三个参数时,会出现一个窗口。

例如:

window.open('http://www.stackoverflow.com', '_blank', 'width=500, height=400')