.
<c:forEach items="${requestScope.allroles}" var="role" varStatus="loopStatus">
<c:when test="${0==loopStatus.index%2}">
</c:when》
</c:forEach>
int n=100;
for(int i=0;i<n;i++) {
}
这里loopStatus.index和for循环的迭代变量i作用一样
.
<c:forEach items="${requestScope.allroles}" var="role" varStatus="loopStatus">
<c:when test="${0==loopStatus.index%2}">
</c:when》
</c:forEach>
int n=100;
for(int i=0;i<n;i++) {
}
这里loopStatus.index和for循环的迭代变量i作用一样