arr1 =[{"id":1,"a":2},{"id":2,"c":3},{"id":3,"d":3},{"id":4,"d":3}]; arr2 =[{"id":3,"ed":1111,"vvv":121},{"id":4,"fa":2222},{"id":5,"sa":2222}];
arr1和arr2数组格式是不一样的,但是arr2中的id3和id4却和arr1一样,怎么实现两个数组对比后,发现ID重复了,删除arr1中id为3和id4的整个对象?
雷雷
雷雷