📜  Javascript 拼接 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:54.696000             🧑  作者: Mango

代码示例4
//Splice
const numbers = [3, 6, 4, 8, 9, 19, 15, 21, 45, 87];
const numberSplice = numbers.splice(0, 3);
console.log(numberSplice);
//Output: [ 3, 6, 4 ]