_.difference([], [])当我有原始类型数据时,此方法可以正常工作var a = [1,2,3,4];var b = [2,5,6];然后_.difference(a,b)电话返回[1,3,4]但如果我使用的对象像var a = [{'id':1, 'value':10}, {'id':2, 'value':20}];var b = [{'id':1, 'value':10}, {'id':4, 'value':40}];似乎不起作用
添加回答
举报
0/150
提交
取消