filter筛选
detailShowList=[
{
type:'send',
value:'12',
},
{
type:'rec',
value:'12',
},
]
const showArray = [
detailShowList,
detailShowList.filter(args => args.type == 'send'),
detailShowList.filter(args => args.type == 'rec'),
];
符合条件的为true,会组成新的数组