Map提供第二个参数作为当前元素的索引,第三个参数作为整个数组本身。
renderBoxes() { return Array.map((data, index, array) => this.myFunction(index));}阅读有关Array.prototype.map的更多信息

Map提供第二个参数作为当前元素的索引,第三个参数作为整个数组本身。
renderBoxes() { return Array.map((data, index, array) => this.myFunction(index));}阅读有关Array.prototype.map的更多信息