【发布时间】:2019-09-27 23:06:05
【问题描述】:
aqw= {
"res": {
"statiscs":{
"traffic": {
"0": {
"name": "S0",
"bytes": 87
},
"1": {
"name": "S1",
"bytes": 837
},
"3": {
"state": [
{
"merchant": "seno",
"vendor": "miami"
}
],
"name": "S1",
"bytes": 837
}
}
}
}
}
console.log('...', aqw.res.statiscs.traffic.0.name);
我尝试使用 console.log('...', aqw.res.statiscs.traffic.0.name) 但我没有定义。 我尝试使用 angular ng-repeat 但停留在访问动态数字键
【问题讨论】:
标签: json object nested-loops