Array.prototype.map() 1 语法 const new_array = arr.map(callback[, thisArg]) 2 简单栗子 let arr = [1, 5, 10, 15]; let newArr = arr.map(function(x) { return x * 2; }); // arr is now [2, 10, 20, 30] // newArr is still [1, 5, 10, 15] 3 参数说明 callback 生成新数组元素的函数…