摘要: 数组 1. map ( item,index, arr(原数组) ) 返回一个新的数组,数组中的元素为原始数组调用函数处理后的值,不会改变原始数组。 可以return 1 let arr = [1,2,3]; 2 let tt = arr.map(function(i){ 3 console.log 阅读全文
posted @ 2021-08-13 15:08 小黄花呐 阅读(211) 评论(0) 推荐(0) 编辑