摘要: let list = [ { id: 1, price: 2 }, { id: 2, price: 4 }, { id: 3, price: 6 }, { id: 4, price: 8 }, ]; let res= list.reduce((sumData,key,index,arrData)=> 阅读全文
posted @ 2023-04-17 12:47 浮生如梦似离殇 阅读(872) 评论(0) 推荐(0) 编辑