宣赞的头像 ID: 25660810072

宣赞

HelloWorld 社区成员

5049567311

文章3
个人网站0
加入社区2025

初探ES6中的Set和weakSet

Set对象允许你存储任何类型的唯一值,无论是原始值或者是对象引用。(不能重复)<pre<codeconstset1newSet(1,2,3,4,5,6);console.log(set1);//Set{1,2,3,4,5,6}</code</