数组中删除某一项

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"]
上一篇 下一篇

猜你喜欢

热点阅读