【发布时间】:2012-12-10 15:18:34
【问题描述】:
我使用与敲除JS P>下面的模板
<tbody data-bind="foreach: List">
<tr>
<td><input type="button" data-bind="if: ($parent.IsFVL || $parent.AllowChat || $root.Me().AllowChatMonitoring), value: ID, click: SelectVisit" /><span data-bind="ifnot: ($parent.IsFVL || $parent.AllowChat || $root.Me().AllowChatMonitoring), text: ID"></span></td>...
和主叫/发起这样 P>的模板
<div data-bind="template: { name: 'tplVisitsGrid', data: { Title: 'My Visits', 'List': MVL, 'AllowChat': true, 'AllowPing': false, 'IsFVL': false } }"></div>
另外我双重检查“$ root.Me()。AllowChatMonitoring”的值是真实的,但两者的输入[类型=按钮]和跨度两者都呈现。我能怎么会丢失? P>
【问题讨论】: