当前位置:网站首页>js中判断成绩是否合格,范围在0-100,否则重新输入
js中判断成绩是否合格,范围在0-100,否则重新输入
2022-06-27 07:20:00 【I am the sun?】
代码:
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<script type="text/javascript">
var grade = prompt("请输入小明成绩:");
while(1){
if(grade>=60 &&grade<=100)
{
document.write("合格");
break;
}
else if(grade <=60 &&grade >=0)
{
document.write("不合格");
break;
}
else{
grade = prompt("输入数据请保持在0-100之间,请重新输入");
}
}
</script>
</head>
<body>
</body>
</html>
运行结果:
情况一:

情况二:

情况三:



边栏推荐
- Remote connection raspberry pie in VNC Viewer Mode
- uview的安装和功能
- Jupiter notebook file directory
- 磁选机是什么?
- From 5 seconds to 1 second, the system flies
- POI export excle
- [openairinterface5g] rrcsetupcomplete for RRC NR resolution
- poi导出excle
- Yarn create vite reports an error 'd:\program' which is neither an internal or external command nor a runnable program or batch file
- (已解决) npm突然报错 Cannot find module ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js‘
猜你喜欢

POI replacing text and pictures in docx

Oppo interview sorting, real eight part essay, abusing the interviewer

Stream常用操作以及原理探索

Win10 remote connection to ECS

mssql如何使用语句导出并删除多表数据

(已解决) npm突然报错 Cannot find module ‘D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js‘

Rust Async: smol源码分析-Executor篇

Speech signal feature extraction process: input speech signal - framing, pre emphasis, windowing, fft- > STFT spectrum (including amplitude and phase) - square the complex number - > amplitude spectru

多表联查--07--- Hash join

Winow10 installation nexus nexus-3.20.1-01
随机推荐
Talk about Domain Driven Design
File 与 MultipartFile概述
Write an example of goroutine and practice Chan at the same time
R 语言Analyzing wine data
postgreSQL在windows系统遇到权限否认(permission denied)
POI export excle
什么是浮选机?
2022 cisp-pte (II) SQL injection
[graduation season] graduation is the new beginning of your life journey. Are you ready
JDBC transaction commit case
Guava tutorial collect some cases and write Google tool classes slowly
1-4 decimal representation and conversion
sql sever列名或所提供值的数目与表定义不匹配
通过uview让tabbar根据权限显示相应数量的tabbar
Vs how to configure opencv? 2022vs configuration opencv details (multiple pictures)
What is the difference between volatile and synchronized?
Stream常用操作以及原理探索
Installation and functions of uview
Bean copy details
请问网页按钮怎么绑定sql语句呀