认给
Thymeleaf循环时带上序号
thymeThymeleaf循环时带上序号使⽤Thymeleaf循环列表时,有时候需要在前端显⽰出序号,这时可以使⽤thymeleaf 循环的状态变量。<tr th:each="service:${services}" ><td th:text="${serviceStat.index+1}"></td><td th:text="${service.nam...
thymeThymeleaf循环时带上序号使⽤Thymeleaf循环列表时,有时候需要在前端显⽰出序号,这时可以使⽤thymeleaf 循环的状态变量。<tr th:each="service:${services}" ><td th:text="${serviceStat.index+1}"></td><td th:text="${service.nam...