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的整個對象?
雷雷
雷雷