数组如下所示,怎么统计出inputer最多的三个名字和重复的次数,求一个算法vardata=[{id:"001",inputer:"张三",inputer_code:"003"},{id:"002",inputer:"诺一",inputer_code:"001"},{id:"003",inputer:"张三",inputer_code:"003"},{id:"004",inputer:"诺一",inputer_code:"001"},{id:"005",inputer:"李四",inputer_code:"004"},{id:"006",inputer:"胡六",inputer_code:"001"},{id:"007",inputer:"张三",inputer_code:"003"},{id:"008",inputer:"诺一",inputer_code:"001"},{id:"009",inputer:"王五",inputer_code:"003"},{id:"010",inputer:"王五",inputer_code:"001"},{id:"011",inputer:"李四",inputer_code:"004"},{id:"012",inputer:"诺一",inputer_code:"001"}];谢谢!
添加回答
举报
0/150
提交
取消