数组 用户29352803224 2025-05-18 23 阅读1分钟 从数组中取出某个元素 console.log(arr[0]) 2.得到数组的长度 数组名.length 最大的下标 = 数组的长度 - 1 console.log(arr[arr.length - 1])