js将数组中id相同的项重组成新的数组答:{ id: "1", name: "test1", rName: "the1" },{ id: "1", name: "test1", rName: "the2" },{ id: "1", name: "test1", rName: "the3" },{ id: "2", name: "test2", rName: "the1" },{ id: "2", name: "test2", rName: "the2" },{ id: "3", name...
JS遍历一个数组里包含数组对象然后组成三个新的数组,怎么遍历?答:const [A,B,C] = [[{A:'a',B:'b',C:'c'},{D:'d',E:'e',F:'f'},{H:'h',I:'i',J:'j'}],[{1:1,2:2,3:3},{4:4,5:5,6:6}],[{A:1,B:2,C:3},{D:4,E:5,F:6},{H:7,I:8,J:9}]];console.log(A,B,C)