站点图标 度崩网-几度崩溃

JavaScript如何定义含有数值1至3的数组?

var arr = [1,2,3];var arr = new Array(1, 2, 3);var arr = new Array();arr[0]=1;arr[1]=2;arr[2]=3;