如何在兩個不同的數組中找到具有不同值的元素?在javascript中找到兩個不同數組對象中具有不同值的元素
第一個數組
[Object { id_request="009", comment_bapak="First Comment"},
Object { id_request="010", comment_bapak="Second Comment"},
Object { id_request="012", comment_bapak=null}
]
第二個數組
[Object { id_request="009", comment_bapak="First Comment"},
Object { id_request="010", comment_bapak="Second Comment"},
Object { id_request="012", comment_bapak="New comment here ..... "}
]
我會提醒元素和它的價值。示例id_request
「003」New comment here .....
你期待什麼輸出?它在哪裏是id_request「003」? –
我會通過js –