标签:style blog color for ar div 代码 amp
<c:forEach items="${productList}" var="products" varStatus="status"> 产品序号:${status.count} 产品名称:${products.name} </c:forEach>
上面代码中的varStatus是关键,${status.count}即是我们要的数组的索引值。
如何在JSTL中获取数组或者list对象的索引值(index),布布扣,bubuko.com
如何在JSTL中获取数组或者list对象的索引值(index)
标签:style blog color for ar div 代码 amp
原文地址:http://www.cnblogs.com/liughost/p/3910478.html