var array = [];
for(var i = 0; i <3; i++) {
array.push(() => i);
}
var newArray = array.map(el => el(
作用域相关-代码题【持续更新】
最新推荐文章于 2022-11-18 21:34:43 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
var array = [];
for(var i = 0; i <3; i++) {
array.push(() => i);
}
var newArray = array.map(el => el(