摘要: 1、push() 概念:将指定的元素添加到数组的末尾,添加一个或多个元素,并返回新的数组长度。 var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9]; let result = arr.push(1, 2, 3); console.log(result); // 输出结果为新数 阅读全文
posted @ 2023-08-10 17:08 Wanker 阅读(38) 评论(0) 推荐(0)