Thymeleaf 嵌套循环

 <label th:each="role:${roles}" class="check-box">
<input th:each="item:${sysAdmin.roles}" th:checked="${item.roleId == role.roleId}" name="role"
type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:disabled="${role.dataFlag == '1'}">

</label>
posted @ 2020-07-21 09:06  野狼谷  阅读(1101)  评论(0编辑  收藏  举报