📜  js 插入 - Javascript 代码示例

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

代码示例3
arr.splice(index, 0, item); 
// will insert item into arr at the specified index 
// (deleting 0 items first, that is, it's just an insert).