letkindList=[{kind:"高值",useMoney:"1500",num:"1"},{kind:"低值",useMoney:"200",num:"2"},{kind:"高值",useMoney:"1000",num:"1"},{kind:"中值",useMoney:"800",num:"2"},{kind:"中值",useMoney:"300",num:"10"}];//希望的到目标数组,相同类的数量总和和金额总和[{kind:"高值",useMoney:"2500",num:"2"},{kind:"低值",useMoney:"200",num:"2"},{kind:"中值",useMoney:"1100",num:"12"}]
添加回答
举报
0/150
提交
取消