Iterator与for...of 发表于 2020-05-30 原生具备 Iterator 接口的数据结构如下。 ArrayMapSetStringTypedArray函数的 arguments 对象 123456function test(){ for(let arg of arguments){ console.log(arg) }}test(1,2,3) // 1 2 3 NodeList 对象