js遍历的方法:
1)for循环:支持break,continue
2)forEach:不支持break,continue
3)every:支持breank,continue的场景,需要返回true
4)for in:遍历对象的,对于数组,它输出的key是字符串形式
5)for of :遍历任意的对象,es新增内容
js遍历的方法:
1)for循环:支持break,continue
2)forEach:不支持break,continue
3)every:支持breank,continue的场景,需要返回true
4)for in:遍历对象的,对于数组,它输出的key是字符串形式
5)for of :遍历任意的对象,es新增内容