Blogger Information
Blog 1
fans 0
comment 0
visits 690
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
JS第一课课堂案例
zxp的博客
Original
690 people have browsed it
<!DOCTYPE html>
<html>
<head>
	<title>JavaScript第一章(基础)</title>
	<link rel="icon" type="image/x-icon" href="static/images/favicon.ico">
	<script>
		// 1、在页面head标签的内容部分插入script标签,并在script标签的内容部分书写js程序 
		document.write('你好')
	</script>

	<script type="text/javascript" src="static/all.js"></script>
	
</head>
<body>	
  <script type="text/javascript">  
    //1.给学生的具体成绩划分等级
	var grade=69;
           if(grade>=90 && grade <=100){
	   	alert('优秀');
	   }else if(grade>=80 && grade <=89){
	   	alert('良好');
	   }else if(grade>=70 && grade <=79){
	   	alert('良');
	   }else if(grade>=60 && grade <=69){
	   	alert('及格');
	   }else{
	   	alert('不及格');
	   }


 	  //2判断是否为闰年
	  var years=1996;
	  if(years%4 !=0 || years%100 !=0){
	  	alert('不是闰年');
	  }else{
	  	alert('是闰年!');
	  }
  </script>

</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