用字段destId比较
/**
* 两个数组对象去复
* @param {*} array1
* @param {*} array2
*/
arrayRepeat (array1, array2) {
var result = []
for (var i = 0; i < array2.length; i++) {
var obj = array2[i]
var num = obj.destId
var isExist = false
for (var j = 0; j < array1.length; j++) {
var aj = array1[j]
var n = aj.destId
if (n === num) {
isExist = true
break
}
}
if (!isExist) {
result.push(obj)
}
}
return result
}