let arr = [1,2,3,3,4,5,6,7,7]
arr = Array.from(new Set(arr))
console.log(arr)
打印结果:[1, 2, 3, 4, 5, 6, 7]
let arr1 = [1,2,3,3,4,5,6,7,7]
arr1 = [...new Set(arr1)]
console.log(arr1)
打印结果:[1, 2, 3, 4, 5, 6, 7]
let arr = [1,2,3,3,4,5,6,7,7]
arr = Array.from(new Set(arr))
console.log(arr)
打印结果:[1, 2, 3, 4, 5, 6, 7]
let arr1 = [1,2,3,3,4,5,6,7,7]
arr1 = [...new Set(arr1)]
console.log(arr1)
打印结果:[1, 2, 3, 4, 5, 6, 7]