for..in/for..of的区别 咖喱崔 2023-02-09 26 阅读1分钟 for in:一般用来遍历对象 for of :一般用来遍历可迭代的数据结构,比如数组(array) arugments,nodeList,字符串(string)集合(set) 涉及Iterator 这个是es6的知识点