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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

實(shí)在搞不懂哪里我的代碼哪里出問(wèn)題了

<!DOCTYPE HTML>

<html>

<head>

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

<title> 鼠標(biāo)經(jīng)過(guò)事件 </title>

<script type="text/javascript">

? ? var psw=document.getElementById("psd");

? ? function message(){

? ? if(psw.value==""){ ? ?

? ? ? confirm("請(qǐng)輸入密碼后,再單擊確定!"); }

? ? }

</script>

</head>

<body>

<form>

密碼:<input id="psd" name="password" type="password" >

<input name="確定" type="button" value="確定" onmouseover="message()"/>

</form>

</body>

</html>


正在回答

2 回答

psw變量應(yīng)該放在函數(shù)體

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

lllmh 提問(wèn)者

非常感謝!
2018-08-28 回復(fù) 有任何疑惑可以回復(fù)我~
#2

lllmh 提問(wèn)者

什么時(shí)候要放在函數(shù)體,什么時(shí)候放在函數(shù)外呢
2018-08-28 回復(fù) 有任何疑惑可以回復(fù)我~

<!DOCTYPE HTML>


<html>


<head>


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


<title> 鼠標(biāo)經(jīng)過(guò)事件 </title>


<script type="text/javascript">





? ? function message(){

?var psw=document.getElementById("psd");

? if(psw.value==""){? ??


? ? ?confirm("請(qǐng)輸入密碼后,再單擊確定!"); }


? ? }


</script>


</head>


<body>


<form>


密碼:<input id="psd" name="password" type="password"? >


<input name="確定" type="button" value="確定" onclick="message()"/>


</form>


</body>


</html>


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

舉報(bào)

0/150
提交
取消

實(shí)在搞不懂哪里我的代碼哪里出問(wèn)題了

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

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

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

公眾號(hào)

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