js取数组一列后去重

let s=new Set();
that.stuList.forEach(stu => {
s.add(stu.className)
});

that.clazList = Array.from(s);

posted on 2022-03-28 08:35  mrwu  阅读(72)  评论(0编辑  收藏  举报