1、方法: function getData(arr1, arr2, type) { var result = []; for (var i = 0; i < arr1.length; i++) { var item1 = arr1[