我这么写为什么网页没有输出,我不知道哪儿错了
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>退出循环break</title>
<script type="text/javascript">
var mynum=new Array(100,70,60,80,90,50,54,70,80);//定义数组mynum,并赋予值
while(i=0;i<mynum.length;i++){
if(mynum[i]<=60){
document.write("成绩"+mynum[i]+"不及格,不在循环"+"<br/>");
break;
}
document.write("成绩"+mynum[i]+"及格,不错");
}
</script>
</head>
<body>
<body>
</html>
慕的地6079101
qq_香樟丸_03962552
kkoang
K丶L
蜂之谷
相关分类