摘要: map map()方法定义在JavaScript的Array中,它返回一个新的数组,数组中的元素为原始数组调用函数处理后的值。 1 let arr = ['d', 's', 'r', 'c']; 2 let arr2 = arr.map(item => item 's') 3 console.log 阅读全文
posted @ 2021-01-27 16:21 行屰 阅读(96) 评论(0) 推荐(0) 编辑