const sum = [{age:1},{age:2}].reduce(function (prev, cur) { return prev + cur.age; }, 0) //3 console.log(sum)
Copyright© 2013-2020
All Rights Reserved 京ICP备2023019179号-8