var arr = ["*","**","***","****"];arr.length=8;//创建数组 alert("数组arr 的length 长度是:"+ arr.length );为什么要写成 var arr = ['*','##',"***","&&","****","##*"]; arr[7] = "**"; //显示数组长度 alert("数组arr 的length 长度是:"+ arr.length );
添加回答
举报
0/150
提交
取消