摘要: th:each属性用于迭代循环,语法:th:each="obj,iterStat:${objList}" 迭代对象可以是Java.util.List,java.util.Map,数组等; iterStat称作状态变量,属性有: index:当前迭代对象的index(从0开始计算) count: 当前 阅读全文
posted @ 2019-10-09 10:47 李建彬 阅读(860) 评论(0) 推荐(0) 编辑
摘要: Thymeleaf 关键字功能介绍案例 th:id 替换id <input th:id="'xxx' + ${collect.id}"/> th:text 文本替换 <p th:text="${collect.description}">description</p> th:utext 支持html 阅读全文
posted @ 2019-10-09 10:30 李建彬 阅读(934) 评论(0) 推荐(0) 编辑