| {home.welcome} |
使用国际化文本,国际化传参直接追加(value…) |
| ${user.name} |
使用会话属性 |
| @{} |
<link rel="stylesheet" type="text/css" media="all"href="../../css/gtvg.css" th:href="@{/css/gtvg.css}" /> |
| – |
– |
| ${} 中预存对象(表达式中基本对象) |
|
| param |
获取请求参数,比如${param.name},http://localhost:8080?name=jeff |
| session |
获取 session 的属性 |
| application |
获取 application 的属性 |
| execInfo |
有两个属性 templateName和 now(是 java 的 Calendar 对象) |
| ctx |
|
| vars |
|
| locale |
|
| httpServletRequest |
|
| httpSession |
|
| – |
– |
| th扩展标签 |
|
| th:text |
普通字符串 |
| th:utext |
转义文本 |
| th:href |
|
| th:attr |
<img src="../../images/gtvglogo.png" th:attr="src=@{/images/gtvglogo.png},title=#{logo},alt=#{logo}" /> |
| th:with |
定义常量 |
| th:attrappend |
|
| th:classappend |
|
| th:styleappend |
|