Blogger Information
Blog 15
fans 0
comment 0
visits 12682
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
js 判断作业
峰回掠影的博客
Original
779 people have browsed it

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Document</title>


</head>

<body>

<script type="text/javascript">

// 判断是否为闰年

var nian= 2019;

if (nian%4 != 0) {

alert('不是闰年');

}else if (nian%100 !=0) {

alert('不是闰年');

}else{

alert('是闰年!');

}

</script>

// 学生的具体成绩划分等级

优秀(90-100)、良好(80-89)、良(70-79)、及格(60-69)、不及格(0-59

var cji = 60

if(cji>90 && cji<100){

   alert('优秀');

}else if(cji>80 && cji<89){

   alert('良好');

}else if(cji>70 && cji<79){

   alert('良');

}else if(cji>60 && cji<69){

   alert('及格');

}else if(cji>0 && cji<59){

    alert('不及格');

}else{

alert('输入成绩');

}

</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
Author's latest blog post