【发布时间】:2014-05-20 13:50:05
【问题描述】:
我正在尝试在将 itenIteration 添加到每个循环之后根据条件在流体中添加一个类。
这里只有第一个有效。第二个以文本形式出现。所以格式肯定有问题。
<tr class="item{f:if(condition: itemIteration.isFirst, then: 'hidden')}">
<tr class="item{f:if(condition: itemIteration.index > 10, then: 'hidden')}">
我可以这样写,所以索引工作正常!
<tr class="<f:if condition="{itemIteration.index} > 10">hidden</f:if>">
【问题讨论】: