可以用高阶函数来处理:
var arr = [ {id:1,name:'aaa'}, {id:2,name:'bbb'}, {id:3,name:'ccc'} ]; arr = arr.filter(item => item.id !== 2)