03 2023 档案

摘要:最新数组方法最新数组方法(包括es6) 1 arr.push() 从后面添加元素,返回值为添加完后的数组的长度 let arr = [1,2,3,4,5] console.log(arr.push(5)) // 6 console.log(arr) // [1,2,3,4,5,5] 2 arr.pop() 从后 阅读全文
posted @ 2023-03-15 14:25 笑猫丶 阅读(36) 评论(0) 推荐(0)