1、for in循环实质是一种foreach循环
2、作用
(1)遍历数组里的所有数组元素
(2)遍历JavaScript对象的所有属性
3、语法格式
for(index in object)
{
statements
}