📅  最后修改于: 2022-03-11 15:01:06.493000             🧑  作者: Mango
var Data = [
{id_list:1, name:'Nick', token:'312312'},
{id_list:2, name:'John', token:'123123'}
]
var index = Data.map(function(e) { return e.name; }).indexOf('Nick');