摘要: 一、length let arr = [1, 2, 3, 4, 5, 6, 7] 1. 获取数组的长度 console.log(arr.length) // 7 2. 通过下标修改值 arr[0] = 4; console.log(arr) // [4, 2, 3, 4, 5, 6, 7] 3. 通 阅读全文
posted @ 2021-07-11 02:20 Ananiah 阅读(100) 评论(0) 推荐(0) 编辑