<div th:each="num, numStat : ${#numbers.sequence(0,9)}">
<a target="_blank" th:href="${'images/atlas/'+ (numStat.index+1) + '.png'}">
<img title="点击查看图片" th:src="${'images/atlas/'+ (numStat.index+1) + '.png'}" alt="图片" >
</a>
<span th:text="${'图'+ (numStat.index+1)}">图1</span>
</div>
如上所示, 使用 #numbers.sequence(0,9) 循环10次;使用numStat.index 获取当前下标