如何使用thymeleaf th:xx来实现JSTL代码<c:foreach begin =“1”end =“12”var =“item”>

时间:2018-01-29 10:30:46

标签: thymeleaf

如何使用thymeleaf th:xx来实现JSTL代码:<c:forEach begin="1" end="12" var="item"> </c:forEach>

1 个答案:

答案 0 :(得分:0)

<th:block th:each="item: ${#numbers.sequence(1, 12)}">

</th:block>