📅  最后修改于: 2022-03-11 15:02:51.137000             🧑  作者: Mango
const data = [
{title : "One",prix:100},
{title : "Two",prix:200},
{title : "Three",prix:300}
]
console.log((data.reduce((a,v) => a = a + v.prix , 0 )))