var arr = [
{xuhao: '1',
name: 'qnne'},
{xuhao: '2',
name: 'qnne'},
{xuhao: '2',
name: 'qnne'},
{xuhao: '3',
name: 'qnne'},
]
var arr1 = [...new Set(arr)]
console.log(arr1)
这样就不管用了?
那对数组项是对象的这种数组要怎么去重呀?