【发布时间】:2015-03-04 02:42:53
【问题描述】:
如何获取流星中的每个循环索引。@index 不起作用。请帮助我。
Template.apichange.helpers({
api_rest_data: function ()
{
return Session.get("api_rest_list");
}
});
{{#each api_rest_data}}
<tr>
<td><select id="methodname"> <option id="optn" value="{{ method_name }}"> {{ @index }} </option></select></td>
</tr>
{{/each}}
【问题讨论】:
标签: meteor