function a(){
var colors = ["red","blue","green"];
colors[colors.length] = "black";
colors[colors.length] = "brown";
alert(colors.length);
}
js-array自增长方式
猜你喜欢
转载自www.cnblogs.com/daochong/p/9074690.html
今日推荐
周排行