ES6两种循环方式

替代老旧的:for(var i;i<length;i++){};

for(let key in obj){}; //以key顺序执行数组

for(let row of arr){}; //以row顺序执行数组

知道了!

1