🌈 搜索
📅  最后修改于: 2022-03-11 15:01:07.247000             🧑  作者: Mango
let array = [1,2,3]; let item = array.indexOf(2) let deleteCount = 1; array.splice(item, deleteCount)