const _delete = (array,index) => { // 补全代码 const newArray = array.slice() newArray.splice(index, 1) return newArray }