判断a数组的数是否在b数组中并且返回在b数组中的索引 a.map(x){ function res(m){ return x = = m } console.log(b.findIndex(res)) }