语法规则

//引入命名空间
xmlns:th="http://www.thymeleaf.org"
//用th:<prop>替换<prop>属性的值
<h4 th:text="${hello}" ></h4>
1 Fragment inclusion th:insert
th:replace
2 Fragment iteration th:each
3 Conditional evaluation th:if
th:unless
th:switch
th:case
4 Local variable definition th:object
th:with
5 General attribute modification th:attr
th:attrprepend
th:attrappend
6 Specific attribute modification th:value
th:href
th:src
...
7 Text (tag body modification) th:text
th:utext
8 Fragment specification th:fragment
9 Fragment removal th:remove

 

posted @ 2020-07-25 11:41  阿布都日  阅读(201)  评论(0编辑  收藏  举报