1、标准表达式语法
${...}
: 变量表达式。<span th:text="${book.author.name}">
*{...}
: 选择表达式。<div th:object="${book}"> ... <span th:text="*{title}">...</span> ... </div>
#{...}
: 消息 (i18n) 表达式。<table> ... <th th:text="#{header.address.city}">...</th> <th th:text="#{header.address.country}">...</th> ... </table>
@{...}
: 链接 (URL) 表达式。<a th:href="@{/order/list}">...</a> <a th:href="@{/order/details(id=${orderId},type=${orderType})}">...</a>
~{...}
: 片段表达式。<div th:insert="~{commons :: main}">...</div>
<div th:with="frag=~{footer :: #main/text()}"> <p th:insert="${frag}"> </div>
th:value
th:replace
用于数据回显
2、