遍历循环一、数组遍历方法 1. forEach() forEach 方法用于调用数组的每个元素,并将元素传递给回调函数。数组中的每个值都会调用回调函数。其语法如下: array.forEach(function(currentValue, index, arr), thisValue) 罗天旭Javascript遍历大约 13 分钟