This works:
<input type="checkbox" {{if (ON) 开发者_StackOverflow}} checked {{/if}} id="cbCentral" />
This doesn't work:
<input type="checkbox" {{if (ON && QC) }} checked {{/if}} id="cbCentral" />
It seems && cannot be used to represent an AND operator. How can I express an AND operator? ON and QC are type boolean.
This should work:
{{if ON && QC}}checked{{/if}}
I threw together a simple test using AND in an {{if}}
here: http://jsfiddle.net/Encosia/vNXV5/
精彩评论