摘要: 转载自:https://segmentfault.com/q/1010000006658882 简单说,for in是遍历键名,for of是遍历键值。例如: let arr = ["a","b"]; for (a in arr) { console.log(a);//1,2 } for (a of 阅读全文
posted @ 2017-06-18 08:15 hasic 阅读(251) 评论(1) 推荐(0)