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"]
本文标题:数组中删除某一项
本文链接:https://www.haomeiwen.com/subject/bjzegltx.html
网友评论