0
我有这样的JSON:Accesing JSON与车把
{
{
"status": {
"success": true,
"error": ""
},
"data": {
"hello_world": [
{
"uid": {
"email": "[email protected]",
"id": "d3c074d8b2b24e958"
},
"my_itm": {
"name": "BIg",
"id": "2380caa99cb426f"
},
"id": "6747e005f23f451"
},
{
"uid": {
"email": "[email protected]",
"id": "5859082d3c074d8b2b24e958"
},
"my_itm": {
"name": "Dog",
"id": "a99cb426f"
},
"id": "c6747e005f23f452"
}
]
}
}
我使用的把手,我想从my_itm
名称来访问。但我想这样做foreach my_itm
。我怎样才能做到这一点?
这里是我试过:
{{#each hello_world.my_itm}}
<p>{{name}}</p>
{{/each}}