#每天一个知识点# for … in 循环主要是为了遍历对象而生,不适用于遍历数组; for … of 循环可以用来遍历数组、类数组对象,字符串、 Set 、 Map 以及
Generator 对象。
评论