JavaScript如何定义含有数值1至3的数组? 盾给网 4年前 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; No related posts.