摘要:
集合的定义: 可以存储多个数据,数据不重复(全等匹配) 创建集合: let set = new Set(); 集合的方法: add()` 添加数据,会返回添加后的新集合(链式调用) let set = new Set();set.add(1).add(2).add(3).add(4);console 阅读全文
摘要:
for of 遍历数组中的每个值, let arr = ["F72", "123", 2000, false]; for(let items of arr){ console.log(items);//"F72", "123", 2000, false } for in 遍历数组中的每个下标 let 阅读全文