ITPub博客

首页 > 应用开发 > > prompt的对话框没有弹出

prompt的对话框没有弹出

作者:coyan 时间:2019-08-02 10:47:38 0 删除 编辑
<!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("你的成绩很优秀")
      }
    else if(score>=70 && score<80);
    {
        alert("你的成绩良好,请继续保持!")
      }
    else if(score>=60 && score<70);
    {
        alert("你的成绩及格了!!")
      }
    else
    {
        alert("你的成绩未及格,请努力学习!!!");
    }
 </script>
</body>
</html>


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2236/viewspace-3153726/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-07-11

  • 博文量
    271
  • 访问量
    16162