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

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

點(diǎn)擊按鈕取消,如何不出現(xiàn)提示框

????<!DOCTYPE HTML>

????<html>

????<head>

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

????<title>prompt</title>

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

????? function rec()

????? {

???? var score; //score變量,用來(lái)存儲(chǔ)用戶輸入的成績(jī)值。

???? score =prompt();

????? ? if(isNaN(score))

???? {

???? ? alert("請(qǐng)輸入數(shù)字");

????? }

????? ? else if(score<=0 || score>100)

???? {

???? alert("成績(jī)是0-100,請(qǐng)重新輸入");

????? ? }

???? else if(score>80)

???? {

???? alert("牛逼");

???? }

????? ? else if(score>60)

???? {

???? alert("可以");

???? }

????? ? else

???? {

???? alert("是個(gè)人才");

???? }

????? }

????? </script>

????</head>

????<body>

????? ? <input name="button" type="button" onClick="rec()" value="點(diǎn)擊我,對(duì)成績(jī)做評(píng)價(jià)!" />

????</body>

????</html>

????

正在回答

4 回答

<!DOCTYPE HTML>

<html>

<head>

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

<title>prompt</title>

? <script type="text/javascript">

? function rec(){

var score; //score變量,用來(lái)存儲(chǔ)用戶輸入的成績(jī)值。

score =? prompt("請(qǐng)輸入你的成績(jī)")? ? ? ? ? ? ? ;

if(score!=null) {

if(score>=90)

{

? ?document.write("你很棒!");

}

else if(score>=75)

? ? {

? ?document.write("不錯(cuò)吆!");

}

else if(score>=60)

? ? {

? ?document.write("要加油!");

? ? }

? ? else

{

? ? ? ?document.write("要努力了!");

}

}

? }

? </script>

</head>

<body>

? ? <input name="button" type="button" onClick="rec()" value="點(diǎn)擊我,對(duì)成績(jī)做評(píng)價(jià)!" />

</body>

</html>


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

<!DOCTYPE HTML>

<html>

<head>

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

<title>prompt</title>

? <script type="text/javascript">

? function rec(){

var score; //score變量,用來(lái)存儲(chǔ)用戶輸入的成績(jī)值。

score =prompt("請(qǐng)輸入你的成績(jī):");

if(score>=90)

{

? ?document.write("你很棒!");

}

else if(score>=75)

? ? {

? ?document.write("不錯(cuò)吆!");

}

else if(score>=60)

? ? {

? ?document.write("要加油!");

? ? }

? ? else

{

? ? ? ?document.write("要努力了!");

}

? }

? </script>

</head>

<body>

? ? <input name="button" type="button" onClick="rec()" value="點(diǎn)擊我,對(duì)成績(jī)做評(píng)價(jià)!" />

</body>

</html>


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

為什么呢,看提示就知道被你的判斷給攔下了。

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

? <!DOCTYPE HTML>

? ? <html>

? ? <head>

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

? ? <title>prompt</title>

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

? ? ? ? ? function rec() {

? ? ? ? ? ? ? var score; //score變量,用來(lái)存儲(chǔ)用戶輸入的成績(jī)值。

? ? ? ? ? ? ? score = prompt();

? ? ? ? ? ? ? if (score != null && score != "") {

? ? ? ? ? ? ? ? ? if (isNaN(score)) {

? ? ? ? ? ? ? ? ? ? ? alert("請(qǐng)輸入數(shù)字");

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? else if (score <= 0 || score > 100) {

? ? ? ? ? ? ? ? ? ? ? alert("成績(jī)是0-100,請(qǐng)重新輸入");

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? else if (score > 80) {

? ? ? ? ? ? ? ? ? ? ? alert("牛逼");

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? else if (score > 60) {

? ? ? ? ? ? ? ? ? ? ? alert("可以");

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? ? ? else {

? ? ? ? ? ? ? ? ? ? ? alert("是個(gè)人才");

? ? ? ? ? ? ? ? ? }

? ? ? ? ? ? ? }

? ? ? ? ? }

? ? ? </script>

? ? </head>

? ? <body>

? ? ? ? <input name="button" type="button" onClick="rec()" value="點(diǎn)擊我,對(duì)成績(jī)做評(píng)價(jià)!" />

? ? </body>

? ? </html>


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

小魚(yú)魚(yú)同學(xué)

大佬, 這才是正解。
2020-06-04 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

點(diǎn)擊按鈕取消,如何不出現(xiàn)提示框

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

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

幫助反饋 APP下載

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

公眾號(hào)

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