var arr = ["*","**","***","****"];
arr.length=8;//创建数组
alert("数组arr 的length 长度是:"+ arr.length );为什么要写成
var arr = ['*','##',"***","&&","****","##*"]; arr[7] = "**"; //显示数组长度 alert("数组arr 的length 长度是:"+ arr.length );
ruibin
相关分类