直接上代码let obj = this.list.find(data => { if(data.id === this.isIndex) { return data } }) console.log(obj)