level 3
有个数据操作没有找到相应的办法解决,求助下各位大神
如下数据结构
{
name:'xx',
infos:{
pc:{
p1:{
status:true,
code:'123'
},
p2:{
status:false,
code:'3323'
}
},
app:{
a1:{
status:false,
code:'989'
},
a2:{
status:true,
code:'876'
}
}
}
}
如何才能查询到 pc下面status为true的那项数据 即 p1:{status:true,code:'123'}
已知条件 pc status:true 数据结构中没有数组
2016年12月03日 16点12分
1