<c:forEach>遍历标签自动生成序号…

因为jsp使用需要自动生成序号,原来有个标签 varStatus 可以显示出当前下标,然后再写就简单了 见代码

   <   c:forEach items="${fnc:getApplyList(ebApply.apNumber)}" var="Apply"   varStatus="status">

     

    </      c:forEach>
     
   
   

因为index第一个下标是0 所以给他加1

<c:forEach>遍历标签自动生成序号的问题

齐活~~~~~~
${status.index + 1}
${status.index + 1}

猜你喜欢

转载自blog.csdn.net/s1040342522/article/details/78337790
今日推荐