forEach 获取下标信息

<c:forEach items="${signBusList}" var="sign" varStatus="xh"> 

       ${xh.count}序号从1开始 

      ${xh.index}序号从0开始 

      ${xh.last}最后一个序号 

     ${xh.first}第一个序号 

</cforEach>

 

posted @ 2021-07-27 17:46  turbozhang  阅读(1386)  评论(0编辑  收藏  举报