请问大神哪里雨问题?
var arr=new Array(1,2,3,4,5,6,7,8,9);
var i=0;
while(i<arr.length)
{
if(arr[i]>5)
{
document.write(arr[i]+"大于5,不循环 ");
break;
}
document.write(arr[i]);
arr=arr+1;
}
var arr=new Array(1,2,3,4,5,6,7,8,9);
var i=0;
while(i<arr.length)
{
if(arr[i]>5)
{
document.write(arr[i]+"大于5,不循环 ");
break;
}
document.write(arr[i]);
arr=arr+1;
}
2017-09-08
举报