?? 6-8.html.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
</head>
<body>
<script language="javascript">
while(true){
var sorce = prompt("請輸入成績:","");
if(sorce>100 || sorce<0){
alert("輸入不正確!");
continue;
}
if(sorce>80){
document.writeln("good");
}else{
document.writeln("bad");
}
if(confirm("還要輸入嗎?")!=true){
break;
}
}
</script>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -