2023年8月14日
摘要: 1.map()函数 (1)map()适用于映射新的数组 let arr1 = [1, 4, 9, 16]; let NewArr = arr1.map((x) => x * 2); console.log(NewArr); // [2, 8, 18, 32]; 但是,当用if条件返回时,会出现und 阅读全文
posted @ 2023-08-14 10:43 zy89898976 阅读(74) 评论(0) 推荐(0) 编辑