【发布时间】:2013-10-26 12:47:06
【问题描述】:
我是第一次使用 Google Closure 模板。
我们可以在 Google Closure Template 中使用按位运算符吗?
我想使用这样的东西:
{if $saleStatus.errors & $constant.displayValue}
<div class="displaye">
<msg desc="user is banned">
User is Banned.
</msg>
</div>
{/if}
这里我想使用按位运算符,但我抛出语法异常错误。
或者有什么我应该使用的方法。可能是包含js并在那里做点什么?
【问题讨论】:
标签: javascript google-closure-templates