Blogger Information
Blog 6
fans 0
comment 0
visits 2459
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JavaScript基础 2019-3-25
小5的博客
Original
444 people have browsed it

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>2019-3-25 作业</title>
   <script type="text/javascript">
//if else语句判断学习成绩


var a = 25;
if (a>=90){
           alert('优秀!');
}else if(a<90 && a>=80){
           alert('良好!');
}else if(a<80 && a>=70){
           alert('良');
}else if(a<70 && a>=60){
           alert('及格');
}else{
           alert('不及格');
}
       

       //if else语句判断闰年

       
var years = 2001;
if(years%4==0 && years%100==0 && years%400==0){
           document.write('这是闰年')
       }else if(years%4==0 && years%100!=0){
           document.write('这是闰年')
       }else{
           document.write('这不是闰年')
       }

   </script>
</head>
<body>

</body>
</html>

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments