Blogger Information
Blog 10
fans 0
comment 0
visits 6393
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
if...else if...else..案例
俞斌的博客
Original
965 people have browsed it

实例

<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>document</title>
	<script type="text/javascript">
		var fen = prompt("请输入分数");
		fen = parseFloat(fen);
		if(fen >= 90 && fen <= 100)
		{
			alert("A级")
		}else if(fen >=70 && fen < 90)
		{
			alert("B级")
		}else if(fen >=60 && fen <70)
		{
			alert("C级")
		}else if(fen < 60)
		{
			alert("不及格")
		}else
		{
			alert("输入有误")
		}
	</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
Author's latest blog post