var arr = [0,1,3,2]
var objArr = [
{abc:0,def:'你'}, {abc:1,def:'我'}, {abc:2,def:'他'}, {abc:3,def:'它'}
]如何判断当arr的某个下标对应的值和objArr的abc的值相等了取出对应def对应的值,这个方法如何封装
eg:arr[0] ==> "你"arr[2] ==> "它"
慕田峪4524236
白猪掌柜的
繁星coding
弑天下
相关分类