array:[ { id:1, name:'A' }, { id:2, name:'B' }, { id:3, name:'B' } ] console.log(this.array.map(o=>o.name).indexOf(B)); //获取到name等于b的数组在这个二维数组中的位置 1