let s = new Set(["前端", "后端", "大数据"])
console.log(s.keys()); //返回的是set集合的内容
console.log(s.values()); //返回的是set集合的内容
console.log(s.entries()); //返回的是key和values,也都是内容
// 遍历 set合集
for (var v of s.keys()) {
console.log(v);
}
for (var v of s.values()) {
console.log(v);
}
for (var v of s.entries()) {
console.log(v);
}