我加載一些JSON:加載一些JSON對象
[{
"id": "0a4bf3b5bb5f47ece9284052389ae02f6c9dba989ca34086a30e049ee3d8eb47",
"name": "Celery",
"status": "Offline",
"servicecontrolled": true
},
{
"id": "ec9471ec001c10b9fa286e1f52e39c5dc9485a7c2cfbf55145c26242bb98ec4d",
"name": "Nginx",
"status": "Online",
"servicecontrolled": false
}]
,並顯示在HTML servicecontrolled
:
<td>
<span>{{ service_rec.servicecontrolled }}</span>
</td>
如何只"servicecontrolled": true
HTML代碼中顯示?
顯示它您可以請張貼的完整代碼 – rashfmnb