81,092
社区成员
发帖
与我相关
我的任务
分享
<c:forEach items="${temp.poss}" var="tem" varStatus="varStatus" begin="0" end="3" >
<c:if test="${varStatus.index eq 3} ">
...
</c:if>
${tem}
<c:if test="${varStatus.index lt 2} ">
/
</c:if>
</c:forEach>
<c:if test="${varStatus.count == 4} ">
...
</c:if>
${tem}
<c:if test="${varStatus.count <3} ">
/
</c:if>
换成count试试
//1.
<c:forEach items="${temp.poss}" var="tem" varStatus="varStatus" begin="0" end="3" >
<c:if test="${tem.index eq 3} ">
...
</c:if>
${tem}
<c:if test="${tem.index lt 2} ">
/
</c:if>
</c:forEach>
//2.
<c:forEach items="${temp.poss}" var="tem" varStatus="varStatus" begin="0" end="3" >
<c:if test="${tem.index== '3'} ">
...
</c:if>
${tem}
<c:if test="${varStatus.count<2} ">
/
</c:if>
</c:forEach>