let set = new Set([1,2,3,4,4,4,4,4]); console.log( Array.from(set) ); //输出:[ 1, 2, 3, 4 ] 相关文章: 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2022-12-23 2021-10-22 2022-12-23 2022-12-23