關于 JavaScript 的 open
???window.open('http://www.xianlaiwan.cn','_blank','width=600,height=40,top=100,left=0');
上面這句話正確嗎?當我去掉window時,卻可以正常運行?如下
open('http://www.xianlaiwan.cn','_blank','width=600,height=40,top=100,left=0');
???window.open('http://www.xianlaiwan.cn','_blank','width=600,height=40,top=100,left=0');
上面這句話正確嗎?當我去掉window時,卻可以正常運行?如下
open('http://www.xianlaiwan.cn','_blank','width=600,height=40,top=100,left=0');
2018-08-05
舉報
2018-08-06
window是默認作用域,沒有詳細標注的默認作用于window
2018-08-05
什么鬼。。。
去掉window可以正常運行,這- -
總感覺現在imooc虛擬環境沒以前好用了
在正常的情況下肯定都是window.open吧