可以使用filter方法 var arr = ['a','b','c','d','e'] arr = arr.filter(item=>{return item==='b'}) 结果只留下b,删除了acde