不知道在哪里错了
var arry=['1','2','3','4','5','6','7'];
arry[7]=8;
document.write("数组长度:"+arry.length+"
");
for(i=0;i<=7;i++)
{
document.write("数组"+i"为"+arry[i]+"
");
}
哪里不对啊?
var arry=['1','2','3','4','5','6','7'];
arry[7]=8;
document.write("数组长度:"+arry.length+"
");
for(i=0;i<=7;i++)
{
document.write("数组"+i"为"+arry[i]+"
");
}
哪里不对啊?
2017-03-23
举报