const _delete = (array,index) => {
// 补全代码
let newArr=[...array];//创建一个新数组
newArr.splice(index,1);//注意不能直接返回这个噢。。。
return newArr;
}
const _delete = (array,index) => {
// 补全代码
let newArr=[...array];//创建一个新数组
newArr.splice(index,1);//注意不能直接返回这个噢。。。
return newArr;
}