為什么代碼不管用
function?openWindow(){ ??var?choice=confirm("是否打開新網(wǎng)站"); ??if(choce==true){ ??var?input=prompt("請輸入要打網(wǎng)站網(wǎng)址","?http://idcbgp.cn/"); ??if(inptu!=null) ??{window.open("?http://idcbgp.cn/","_blank",?"width:400,?height:?500,?menubar=no,?toolbar=no")}; ??????????? ??} ???}
2016-05-28
第3行,與等5行,都寫錯了,?choice與input,還有標點符號要切換成英文模式輸入
2016-05-28
/*你這里面有好幾個錯誤:
第二行的分號、第四號的逗號和分號都是是中文,應(yīng)該改成英文的。
第三行的變量名錯了choce,應(yīng)該是choice。
第五行input的單詞錯了。
打開窗口里面的寬高是等號不是冒號。
把第九行的“}”換到第四行后面*/。
function Wopen(){
? var choice=confirm("是否打開新網(wǎng)站");
? if(choice==true){
? var input1=prompt("請輸入要打網(wǎng)站網(wǎng)址"," http://idcbgp.cn/");
? }
? if(input1!=null)
? {
?window.open("http://idcbgp.cn/","_blank","width=400,height= 500,menubar=no,toolbar=no");
}
? }
2016-05-28
標點要英文狀態(tài)第2,4行的分號和第六行明顯不一樣
2016-05-28
function?openWindow(){
??var?choice=confirm("是否打開新網(wǎng)站");
??if(choice==true){
??var?input=prompt("請輸入要打網(wǎng)站網(wǎng)址","?http://idcbgp.cn/");
??if(inptu!=null)
??{window.open("?http://idcbgp.cn/","_blank",?"width:400,?height:?500,?menubar=no,?toolbar=no")};
????????????
??}
???}
if()中的choice寫錯le