数组
arry:{
allQuantity:'',
Lists:[]
}
arry.Lists = [
{Code:'x',Quantity:1,ItemType:'normal'},
{Code:'x',Quantity:2,ItemType:'normal'},
{Code:'x',Quantity:5,ItemType:'normal'},
{Code:'y',Quantity:1,ItemType:'spec'},
{Code:'y',Quantity:2,ItemType:'spec'},
{Code:'z',Quantity:1,ItemType:'normal'}
]
我希望得到Lists里面所有Quantity值的和
arry.allQuantity 就是Lists里面所有Quantity值的和