第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定

請教大神為何運行之后沒反應(yīng)?

<!DOCTYPE html>

<html>

?<head>

? <title> new document </title>??

? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?

? <script type="text/javascript">??

? function openWindow()

? {var mychar=confirm("是否確定點擊?");?

? ? if(mychar==true)

? ? {var myurl=prompt("請輸入你的網(wǎng)址:","http://idcbgp.cn/");

? ? ?if (myurl!=null)

? ? ? ?{ window.open(myurl,'_blank','width=400px,height=500px,menubar=no,toolbar=no');}

? ? ?else

? ? ? ?{alert("88");}

? ? else

? ? ? ?{alert("88");}?

? ? }

? </script>?

?</head>?

?<body>?

? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?

?</body>

</html>


正在回答

2 回答

代碼粘貼到自己的代碼編輯器里面去調(diào)試, 運行網(wǎng)頁打開F12調(diào)? 報錯一下就看出來了...

0 回復(fù) 有任何疑惑可以回復(fù)我~

<!DOCTYPE html>

<html>

<head>

<meta charset="utf-8">

<title></title>

<script type="text/javascript">

function openwindow(){

var URL = prompt("請輸入你的網(wǎng)址或選擇默認(rèn)網(wǎng)址", 'http://idcbgp.cn')

if (URL!=null){

window.open(URL,"_blank"," menubar=yes,toolbar=no,scrollbars=yes,width=400,height=500");

// window.open( url,"_blank","toolbar=no, menubar=no, scrollbars=yes,? width=400, height=400");

}

else{alert("未打開窗口")}

}

function openwindowYN(){

var imooc = 'http://idcbgp.cn/';

var YN = confirm("確認(rèn)新建窗口打開網(wǎng)站嗎?");

if (YN==true){openwindow()}

else{alert("未打開窗口")}

}

</script>

</head>

<body>

<form action="../" method="post">

<input type="button" value="新窗口打開網(wǎng)站" onclick="openwindowYN()"/>

</form>

/*就看出來你在你的函數(shù)哪里少了一個}? 你這代碼有毒。你仔細想想重寫一個把*/

</body>

</html>




1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

Aimily666 提問者

謝謝你的回復(fù),只是我想知道我的問題所在,你寫的好像跟我這個沒有任何關(guān)系
2021-09-24 回復(fù) 有任何疑惑可以回復(fù)我~
#2

Aimily666 提問者

我找到問題了,就是16行少了一個}。謝謝你的熱心回復(fù)。
2021-09-24 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

請教大神為何運行之后沒反應(yīng)?

我要回答 關(guān)注問題
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號