![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Thymeleaf
拥有翅膀的猿
学无止境,超越自我
展开
-
Thymeleaf中循环渲染List集合中的数字&th:style用法
thymeleaf循环遍历数字 <ul th:each="user : ${userList}"> <li> <div th:each="star : ${#numbers.sequence(1,user.star)}"> <img th:src="@{/img/star.png}"> </div> </li> </ul> 2.thy..原创 2020-10-14 09:21:03 · 3302 阅读 · 1 评论 -
Thymeleaf基础
Thymeleaf标准表达式语法: 变量表达式 选择或星号表达式 文字国际化表达式 URL表达式 变量表达式:${session.user.name} <span th:text="${bool.author.name}"> <li th:each="book:${books}"> 选择(星号)表达式:用一个预先选择的对象来代替上下文变量容器(map)来执行: *{customer:name} <div th:object="${book}"> ... .原创 2020-05-27 22:58:20 · 154 阅读 · 0 评论