Believeinthefut
2017-03-23 17:46
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]+"
");
}
哪里不对啊?
1.var arry=[1,2,3,4,5,6,7];
2.document.write(”数组“+i+"为"+arry[i]+"");
var arry=['1','2','3','4','5','6','7'];
arry[7]=8;
document.write("数组长度:"+arry.length+"");
//这里
var i;
for(i=0;i<=7;i++)
{ document.write("数组"+i"为"+arry[i]+""); }
JavaScript进阶篇
468191 学习 · 21891 问题
相似问题