Thymeleaf 生成下标,索引,使用Stat变量
- Stat 内置变量 使用只需 变量名+Stat即可
- 可以获取index,count,size,current,even,odd,first,last等属性
<table class="top_10 mar_b_10" th:each="top : ${notComplianceTOP}">
<tr>
<td>
<!--Stat 内置变量 使用只需 变量名+Stat即可-->
<b th:text="${topStat.count}"/>
<span class="f_gray" th:text="${top.TOPName}"/>
</td>
<td>
<div class="bar_progress">
<div class="bar_progress_bg" progress="60%"></div>
</div>
</td>
<td class="f_gray" th:text="${top.TOPValue}"/>
</tr>
</table>
随笔记录,方便学习
2019-07-10