5

我有一个 json 对象作为

[ "id", "birthday", "companymsgsthisperiod", "companythisperiodend", "cust_attr_boolean", "subscribed", "testgroup", "usermsgsthisperiod", "userthisperiodend" ]

现在我想使用把手将这种类型的 json 对象添加到文件中

<div>/*json*/</div>

谁能帮我度过难关?

4

2 回答 2

7

你有一个数组。我从文档中猜想您可以使用each块助手

<div>
  {{#each dataArray}}
  <div>{{this}}</div>
  {{/each}}
</div>
于 2013-02-21T11:05:21.643 回答
-1

最后它可能会满足您的需求。

tryhandlebarsjs.com - 截图

于 2017-06-27T10:49:22.950 回答