数组去重(一行代码搞定)

let arr = [...new Set([1,'1',2,1,1,3,2,'4'])]
console.log(arr);

猜你喜欢

转载自blog.csdn.net/yufengaotian/article/details/80945990