构造函数#. Array 是JavaScript 的原生对象,同时也是一个构造函数,可以用它生成新的数组。 var arr = new Array(2); arr.length // 2 arr // [ empty x 2 ].
確定! 回上一頁