摘要: js的数组迭代方法 Array.forEach forEach方法为每个数组元素调用一次函数(回调函数)。 数组求和: var arr = [1,2,4,67,3]; var result=0; arr.forEach(sumArray); function sumArray(value, inde 阅读全文
posted @ 2019-11-03 13:49 im73 阅读(115) 评论(0) 推荐(0)