数组中删除某一项
2022-03-17 本文已影响0人
xueyueshuai
let testList = ['0','1','2','3']
testList.splice(2,1) // testList.splice(index,length)
console.log(testList); // ["0", "1", "3"]
let testList = ['0','1','2','3']
testList.splice(2,1) // testList.splice(index,length)
console.log(testList); // ["0", "1", "3"]