http://hpoenixf.com/posts/18922/ 迭代器什么是迭代器js迭代器是一个对象,具有next方法,可以返回序列中的带有done和value两个属性的下一项。 1234567891011function makeIterator(array){ var nextIndex = 0;4 return { next: function(){ return nextInd
http://hpoenixf.com/posts/18922/
迭代器什么是迭代器js迭代器是一个对象,具有next方法,可以返回序列中的带有done和value两个属性的下一项。 1234567891011function makeIterator(array){ var nextIndex = 0;4 return { next: function(){ return nextInd