const length = 2
const dataList = new Array(length).fill([])
dataList[0].push(1)
console
关于使用ES6中Array.fill遇到的坑
最新推荐文章于 2024-07-17 16:38:47 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
const length = 2
const dataList = new Array(length).fill([])
dataList[0].push(1)
console