<c:forEach var="student" items="${ students}" varStatus="status">
<tr>
<td>${ status.index + 1}</td>
</tr>
</c:forEach>
主要是varStatus属性,然后记得要点上index
引用:https://blog.csdn.net/jining521/article/details/45871037
<c:forEach var="student" items="${ students}" varStatus="status">
<tr>
<td>${ status.index + 1}</td>
</tr>
</c:forEach>
主要是varStatus属性,然后记得要点上index
引用:https://blog.csdn.net/jining521/article/details/45871037