数组

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