摘要: 1.forEach方法 迭代(遍历)数组 var arr = [1, 2, 3]; var sum = 0; arr.forEach(function (value, index, array) { console.log('当前数组元素' + value); console.log('当前数组元素 阅读全文
posted @ 2021-08-28 16:48 mmsmd 阅读(59) 评论(0) 推荐(0) 编辑