jstl foreach 取index

时间:2022-08-17 18:33:37
<c:forEach var="myAccountInfo" items="${myAccountInfos}" varStatus="inde">
<li><a>添加到卡包</a><p id="CardInfo"><input type="hidden" value="${inde.index}"/>${myAccountInfo.cardno.value}${myAccountInfo.cardtypename.value}</p></li>
</c:forEach>