比较两个对象数组之间的值

时间:2019-03-26 17:52:27

标签: javascript

我有以下情况:

var arr1 = [{
   sys_id: "b717af1adbd0bf00daba4410ba961913", 
   className: "x_rdbsa_cross_fert_cross_fertilization", 
   display_field: {display_value: "L190322025", label: "Number", type: "string", value: "L190322025"}, 
   secondary_fields: {display_value: "Waiting for Approval", label: "Status", type: "integer", value: "10"}];


var arr2 = [{approver: null, number: "L190322025-1", country: "Argentina", id: "0567a35adbd0bf00daba4410ba9619d6", state: "Waiting for Approval"}

我想用arr1数字display_field.display_value购买arr2数字

1 个答案:

答案 0 :(得分:0)

您的示例中有一个错误(请参见下文),因此请先解决此问题:

DefaultTabController