Thymeleaf模板里循环数字
<div th:each="num, numStat : ${#numbers.sequence(1,5)}">
<img th:src="${"/static/images/icon-"+ (numStat.index+1) + ".jpg"}">
</div>
循环icon-1.jpg到icon-5.jpg
<div th:each="num, numStat : ${#numbers.sequence(1,5)}">
<img th:src="${"/static/images/icon-"+ (numStat.index+1) + ".jpg"}">
</div>
循环icon-1.jpg到icon-5.jpg