<!DOCTYPE?html>
<html?lang="en">
<head>
????<meta?charset="UTF-8">
????<title>if_else多重判斷</title>
</head>
<body>
<script?type="text/javascript">
????var?score;
???score?=?prompt("請輸入你的成績");
???if?(score>=60);
????{
????????alert("您的成績及格了!!!");
????}
????else?if(score>=80?&&?score<90);
????{
????????alert("你的成績很優(yōu)秀")
??????}
????else?if(score>=70?&&?score<80);
????{
????????alert("你的成績良好,請繼續(xù)保持!")
??????}
????else?if(score>=60?&&?score<70);
????{
????????alert("你的成績及格了!!")
??????}
????else
????{
????????alert("你的成績未及格,請努力學(xué)習(xí)!?。?);
????}
?</script>
</body>
</html>
prompt的對話框沒有彈出
冷食不宜多吃但冰激凌除外
2018-11-20 17:27:00