比如:
A:[{"id": "A1", "count": 1}, {"id": "A3", "count": 2},...] B: [{"id": "A2", "count": 10}, {"id": "A3", "count": 10},...]
合并 AB 成
[{"id": "A1", "count": 1}, {"id": "A2", "count": 10}, {"id": "A3", "count": 12},...]
即,如果有在 A,B 中,则 countA+countB
有没有简单的方法, 我用了 N 个 for 循环,代码冗长。
