課程
/前端開發
/JavaScript
/JavaScript入門篇
請各位大神幫忙看看咯,謝謝了
2019-10-05
源自:JavaScript入門篇 2-5
正在回答
你的函數代碼后面錯了,function open寫成function wopen,多了一個 w。
window.open('http://www.xianlaiwan.cn ','_blank','width=600,height=200,top=100,left=0')? or
window.open('http://www.xianlaiwan.cn ','_blank',"width=600,height=200,top=100,left=0")
都可以
后面的代碼只加一對單引號就行了
您在windowsopen括號中應該用雙引號,不是單引號
weixin_慕蓋茨3361579
? ? window.open('http://www.xianlaiwan.cn','-blank',width=600,height=400,top=100,left=0)
你的width、height、top、left屬性都多加了''符號,語法錯誤。
舉報
JavaScript做為一名Web工程師的必備技術,本教程讓您快速入門
4 回答打不開新窗口哦,我的代碼是哪出錯了
3 回答打開新窗口的代碼
4 回答為什么無法打開新窗口?
2 回答新窗口打開
2 回答打開新窗口
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-04-08
你的函數代碼后面錯了,function open寫成function wopen,多了一個 w。
2019-10-14
window.open('http://www.xianlaiwan.cn ','_blank','width=600,height=200,top=100,left=0')? or
window.open('http://www.xianlaiwan.cn ','_blank',"width=600,height=200,top=100,left=0")
都可以
2019-10-12
后面的代碼只加一對單引號就行了
2019-10-07
您在windowsopen括號中應該用雙引號,不是單引號
2019-10-06
? ? window.open('http://www.xianlaiwan.cn','-blank',width=600,height=400,top=100,left=0)
你的width、height、top、left屬性都多加了''符號,語法錯誤。