下面是来自服务器的 json,我只想打印客户列表中的姓名
var PatientList = [{
"Customer": [{
"phone": 1234567890,
"name": "customer"
}],
"Patients": [{
"age": null,
"relationship": null,
"id": 5,
"weight": null,
"name": "customer"
}],
"Lead": [{
"source": 1,
"id": 3,
"service": 3
}]
}];
最佳答案
{{#each PatientList}}
{{#each Customer}}
<div>{{name}}</div>
{{/each}}
{{/each}}
关于javascript - 如何在 Handlebars 中显示 json 数组中的数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33183929/