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