var data =[
{
name:"xyz",
meals:[
{num:3.5},{num:4 },{num:6.5},{num:3}
],
deposits:[
{date:"", amount:3000},
{date:"", amount:2400},
{date:"", amount:300},
];
},
{
name:"abc",
meals:[
{num:3.5},{num:4 },{num:6.5},{num:3}
],
deposits:[
{date:"", amount:3000},
{date:"", amount:2400},
{date:"", amount:300},
];
}
];
I want to get the sum of meals & deposits for every name or object.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…