摘要: 1 let a = [1, 2, 3, 4, 5]; 2 let arr = a.splice(2, 1); // 剩余数组 3 let content = arr[0]; // 目标元素 4 5 console.log('初始化', a) 6 console.log('剩余数组 ', arr) 7 阅读全文
posted @ 2020-09-23 17:22 无人问及 阅读(875) 评论(0) 推荐(0) 编辑