2020年6月13日
摘要: 一、遍历数组 let arr = [1,2,3] 1.for in(数组也是特殊的对象) for (const key in arr) { console.log(key,arr[key]) } 2.foreach arr.forEach((value, index, array) =>{ cons 阅读全文
posted @ 2020-06-13 14:17 肥嘟嘟啊左卫门 阅读(530) 评论(0) 推荐(0) 编辑