es6的数组去重

let list = ['1','qq','bb','hh','qq']
const set = new Set(list)
list = [...set]

posted @ 2021-10-15 15:05  田天1  阅读(77)  评论(0编辑  收藏  举报