📌  相关文章
📜  添加多个元素以设置 javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:29.784000             🧑  作者: Mango

代码示例1
const mySet = new Set([1,2,3,4])
const additionalSet = [5,6,7,8,9]
mySet = new Set([...mySet, ...additionalSet])