这一章为什么用for做循环可以,用while循环就崩溃?求解谢谢
var score=new Array(100,70,50,60,20,10,99)
var i=0;
while(i<score.length)
{
if(score[i]<60)
{
continue;
}
document.write("及格,分数为:"+score[i]+"<br>");
i++;
}
var score=new Array(100,70,50,60,20,10,99)
var i=0;
while(i<score.length)
{
if(score[i]<60)
{
continue;
}
document.write("及格,分数为:"+score[i]+"<br>");
i++;
}
2018-01-28
举报