咏竹莉
where there is a will,there is a way
摘要: 这四种方法都会直接修改数组 push: 在数组的尾部加入一个元素,并返回原有length+1的长度 var arr = [1,2,3] console.log(arr.push(4)); // 4console.log(arr); // [1,2,3,4] pop: 删除数组尾部第一个元素,并返回这 阅读全文
posted @ 2021-08-05 14:22 咏竹莉 阅读(700) 评论(0) 推荐(0)