JSP中在任意位置使用c:foreach循环的索引的方法

在c:foreach中使用varStatus属性,而后再循环中任意位置使用index属性spa 例子: <c:forEach items="${categoryList}" var="category" varStatus="idxStatus">       <c:out value='${idxStatus.index}'/> </c:forEach>it
相关文章
相关标签/搜索