【发布时间】:2013-06-20 04:12:31
【问题描述】:
我想要在 JsRender 的 for 循环中设置为复选框值的当前对象。下面是我的代码。
{{for data.UserConnection}}
<li>
<input name="checkboxlist" class="profilechkbox" type="checkbox" value={{:#view}} /><br />
<a onclick="stateManager.renderSelectedProfileForInviteGroup({{:#index}})" title="{{:Fullname}}" class="active" href="#" >
<img src="{{:userDetails.ImagePath}}" width="40" height="40" /><br />
{{:Fullname}}
</a>
</li>
{{/for}}
我将值设置为{{:#view}} 以获取当前对象。但我收到[object object]。如果我在这里做错了,请纠正我。
【问题讨论】: