//准备数组数据 var obj = new Object(); obj.name="test"; obj.age = 11; var obj1 = new Object(); obj1.name="objname"; obj.age=12; var arr = []; arr.push(obj); arr.push(obj); //数组中删除name为test的对象 arr.filter(item =>item.name.indexOf("test") < 0);