thymeleaf数组下标

<tr th:if="${exercisers != null}"th:each="exerciser:${exercisers}">
  <td th:text="${exerciserStat.index+1}"></td> 数组下标
  <td th:text="${exerciser.person.name}"></td>
  <td th:text="${exerciser.person.email}"></td>
  <td th:text="${exerciser.person.phone}"></td>
</tr>

 

posted @ 2017-10-31 16:04  boyanh  阅读(6549)  评论(0编辑  收藏  举报