摘要: const arr = [1, 2, 3, 4, 5, 6] // 将元素添加到数组末尾 arr.push(7) // arr: [1, 2, 3, 4, 5, 6, 7] // 取出数组末尾元素并返回 const pop_res = arr.pop() // arr: [1, 2, 3, 4, 5 阅读全文
posted @ 2020-10-12 10:50 热心码农小吕 阅读(1183) 评论(0) 推荐(0) 编辑