如果不介意引入一个工具函数的话可以这样做 import without from 'lodash.without' var a = [1,2,3,4,5], b=[3,2,1,4,5,6,9] without(b, ...a) //[6, 9]
如果不介意引入一个工具函数的话可以这样做