</s:iterator>
<s:if test="%{#sta.index%2==1}">style="background-color:gray;"</s:if>>
first | 是否是第一个元素 |
last | 是否是最后一个元素 |
index | 取得当前遍历的索引 |
odd | 当前遍历的索引是否为奇数 |
even | 当前遍历的索引是否为偶数 |
count | 已经遍历了多少个记录 |
</s:iterator>
<s:if test="%{#sta.index%2==1}">style="background-color:gray;"</s:if>>
first | 是否是第一个元素 |
last | 是否是最后一个元素 |
index | 取得当前遍历的索引 |
odd | 当前遍历的索引是否为奇数 |
even | 当前遍历的索引是否为偶数 |
count | 已经遍历了多少个记录 |