数据如下
var arr = [{name: "上海", value: 1},{name: "上海", value: 2},{name: "北京", value: 3},{name: "杭州", value: 2}]
想要得到的json数据
arr = [{name: "上海", value: 3},{name: "北京", value: 3},{name: "杭州", value: 2}]
守着星空守着你
胡说叔叔
相关分类