Correction status:qualified
Teacher's comments:
<!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>
点击 "运行实例" 按钮查看在线实例