jstl foreach 取index
<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>