
wx:if="{{condition}}"
这里的 condition 里不能有任何的'(' 或者 ')'么?
只要有括号就会报 attr wx:if unexpected token ')'
1 LeoEatle 2016-10-29 21:06:56 +08:00 可以有的,这个是 mustache 语法,我估计可能你用了全角符号 [mustache]( http://mustache.github.io/) |
2 ykwlv OP @LeoEatle 没有使用全角的符号。。。只要是有括号就不行了, wx:if 和 hidden 这两个都不能用。在普通的字符串里用{{(xxx) ? a : b}} 这样就可以。 |