<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>continue</title>
<script type="text/JavaScript">
var mynum =new Array(70,80,66,90,50,100,89);
var i=0;
while(i<=mynum.length)
{if(mynum[i]<60)
{continue;}
document.write("成绩:"+mynum[i]+"及格,输出!"+"<br>")
i=i+1;
}
</script>
</head>
<body>
</body>
</html>
结果是70,80,66,90.
只能输出到90。而我用的是continue继续循环,输出结果好像是使用了break。
让开
Fewq