📅  最后修改于: 2022-03-11 15:03:49.133000             🧑  作者: Mango
const numbers = [3, 6, 4, 8, 9, 19, 15, 21, 45, 87];
const numberSplice = numbers.splice(4, 3, 1, 2, 3);
console.log(numberSplice);
//[ 9, 19, 15 ]
console.log(numbers);
// [3, 6, 4, 8, 1,2, 3, 21, 45, 87]