var array1 = [{"id": 30,"isOpen": 0},{"id": 40,"isOpen": 1},{"id": 50,"isOpen": 0}]
var array2 = [{"type": "android","list": [{"id": "30","isShow": true}, {"id": "40","isShow": true}]},{"type": "iOS","list": [{"id": "50","isShow": true}]}]
我现在要拿array2和array1的匹配,先拿到array2的list里面的数据,取出id和array1数组里面的匹配,如果匹配到了id一样的,判断isOpen为0,就把array2匹配到的数据里面的isShow改成false,isOpen=1就改成isShow改成true。