关于continue用法,请大神帮忙分析下
<script type="text/JavaScript"> var mynum =new Array(70,80,66,90,50,100,89);//定义数组mynum并赋值 var i; for(i=0;i<mynum.length;i++) { if(mynum[i]<60) { document.write("成绩不及格,不输出!"+"<br>"); continue; } document.write("成绩:"+mynum[i]+"及格,输出!"+"<br>"); } /*这是我用while写的,但是写上去浏览器直接崩溃,我想问问是我哪里语法不对,造成死循环还是continue根本不适用于while循环 var score=[85,75,42,99,67,56,88,99]; var i=-1; while(i<score.length) { if(score[i]<60) { continue; } document.write("各科成绩分数公布,未达到60不显示"+score[i]+"<br>"); i++; } */ </script>