JS学习笔记 之 for循环 for循环关键: 1. 找出规律 2. 找出循环体,即每次循环都要进行的运算 3. 找出循环次数跟已知条件的关系 遍历数组 for(var i = 0; i < arr.length; i++) { //对arr[i]进行操作 }