数组元素重复出现次数题目一题目2 用reduce写[{ label: '男', value: 1 }, { label: '女', value: 0 }] 题目一["b", "c","b", "c","a", "b", "c"] 统计每个元素出现的次数,结果是: {a:1,b: 3, c: 3}const arr = ["b", "c","b", "c","a", "b", "c&q js 2023-08-27 48 点赞 0 评论 72 浏览