es6新增了一个 Array.of() 好处就是如果使用构造函数传入数字的时候不会生成指定个数的空数组而是生成以这个数字为项目的全新数组Array(3) [,,] Array.of(3) [3] Last modification:March 24, 2021 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 If you think my article is useful to you, please feel free to appreciate