首页 > 编程知识 正文

遍历map类型的list,遍历set和遍历list哪个快

时间:2023-05-04 20:56:20 阅读:160052 作者:1756

div th : if=' $ { # lists.isempty (list (您的集合名称) } )空/divdivth : if=' $ { not # lists.isempty ) list )您的

div th:each='lists, index : ${list} '姓名: input type=' text ' th : value=' $ { lists.name } ' readonly身份证号码: input type=' text ' th 3333 ' readonly年龄: input type=' text ' th : value=' $ { lists.age } ' readonlyyly ne1 ' butter spanth : if=' $ { lists.num } eq1 ' button=1/button/span/div list来自模型,lists是自定义名称,lists

ne和eq是thymeleaf的转义字符

遍历地图

div th:each='自定义名称1 : ${前端到地图} ' div th : each='自定义名称2 : ${自定义名称1.value } ' ' input th : text=

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。