6号晚

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>输出1-100之间能被3整除的数</title>
 6 </head>
 7 <body>
 8     <script type="text/javascript">
 9         var i=1;
10         while (i<=100) {
11             if(i % 3 ==0){
12                 document.write(i+"<br/>");
13             }
14             i++;
15         }
16     </script>
17 </body>
18 </html>
 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>Document</title>
 6 </head>
 7 <body>
 8     <script type="text/javascript">
 9         var score = window.prompt();
10         if( score == null)
11         {
12             result = "取消!";
13         }else if( score == "" )
14         {
15             result = "你什么也没有输入!";
16         }else if( parseFloat(score) != score )
17         {
18             result = "你输入的不是一个数!";
19         }else if(score>100 || score<0)
20         {
21             result = "超出范围";
22         }else
23         {
24             if( score >=90 && score<=100)
25             {
26                 result = "优秀";
27             }else if(score>=80)
28             {
29                 result = "良好";
30             }else if(score>=70)
31             {
32                 result = "中等";
33             }else if(score>=60)
34             {
35                 result = "及格";
36             }else
37             {
38                 result = "不及格";
39             }
40         }
41             document.write(result);
42     </script>
43 </body>
44 </html>

 

posted on 2016-12-07 00:02  日夜不得闲 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/li3207820480/p/6139690.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值