摘要: var arr=[1,2,3,4] arr.forEach((res)=>{return res+1}) undefined arr //[1,2,3,4] arr.map((res)=>{return res=res+1}) [2, 3, 4, 5] arr //[1,2,3,4] foreach 阅读全文
posted @ 2021-12-21 13:24 haveProgress 阅读(36) 评论(0) 推荐(0) 编辑