thymeleaf数组下标

Posted boyan

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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>

 

以上是关于thymeleaf数组下标的主要内容,如果未能解决你的问题,请参考以下文章