会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hasic
博客园
首页
新随笔
联系
订阅
管理
2017年6月18日
js中for in 与 for of
摘要: 转载自: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)
公告