摘要: for in 和 for of的区别是:in 是遍历对象,of是遍历值 let set = new Set(['red', 'green', 'blue']); for (let x of set) { console.log(x); } red green blue let set = new S 阅读全文
posted @ 2021-11-19 17:40 霓裳依旧 阅读(229) 评论(0) 推荐(0) 编辑