let arr = [{ name: "站请", id: 01 }, { name: "站请1", id: 01 }, { name: "张三", id: 01 }, { name: "李三", id: 01 } ]; //模糊查询 var indexArr = []; for (let i = 0; i < arr.length; i++) { if (arr[i].name.indexOf('站') != -1) { // 说明有这一个内容 indexArr.push(arr[i]) } } console.log(indexArr)