1、 <c:forEach items="${signBusList}" var="sign" varStatus="xh"> ${xh.count}序號(hào)從1開(kāi)始 ${xh.index}序號(hào)從0開(kāi)始 ${xh.last}最后一個(gè)序號(hào) ${xh.first}第一個(gè)序號(hào) </cforEach> 2、 <c:set value="${(page.pageNo-1)*page.pageSize}" var="i" scope="page"/> <c:forEach var="preference" items="${page.list}" varStatus="status"> <c:set value="${pageScope.i + 1}" var="i" scope="page"/> 序 號(hào):${pageScope.i} </c:forEach> 3. <c:forEach var="entity" items="${pageData.result}" varStatus="xh"> <tr> <td>${xh.count}</td> |
|
來(lái)自: feimishiwo > 《jstl》