Thymeleaf中each标签遍历list如何获取index

<tr th:each="user,userStat:${users}"> userStat是状态变量,有 index,count,size,current,even,odd,first,last等属性,若是没有显示设置状态变量,thymeleaf会默 认给个“变量名+Stat"的状态变量。
相关文章
相关标签/搜索