[英]jsrender- access elements from complex structure
我正在使用JsRender Library從REST調用中獲取元素作為json,這是我的Json結構:
{
"bugs" : [
{
"component" : "Rx",
"resolution" : "",
"status" : "NEW",
"summary" : "There is a big delay"
},
{
"component" : "Rx",
"resolution" : "",
"status" : "NEW",
"summary" : "problem"
}
]
}
我正在嘗試訪問狀態,但不能,我已經嘗試過
{{:bugs.status}}
{{>~status}}
但是這些都不適合我。 有什么建議么 ?
我找到了答案:
{{for bugs}}
{{:status}}
</br>
{{/for}}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.