# 表明 获取对象 从 messages bundle 也就是消息的资源本地化文件 post
$ 表示从model里面获取 spa
# $这2个能够一块儿用 好比#{'system.'+${model.id}} -----这至关于 #{system.01}的资源本地化文件中的system.01内容 code
下面介绍经常使用的标签 orm
th:fragment=“public” 至关于 include标签 对象
th:each="user : ${users}" 至关于c:foreach 使用时候ci
th:text="${user.id}" 这是表明着运行时候动态设置标签为用户的id属性的值资源
<form action="#" th:action="@{/users/add}" th:object="${myuser}" method="post"> rem
这里th:Object表示表单与 改myuser注入的实体映射, string
在表单 th:field="*{id} 则表示 该表单的值 与 myuser的id绑定 io
th:remove="all" 使用了该标签 将在运行时候移除全部的元素
<tr th:remove="all"> </tr>
常常有由td 表格展现某一行要判断的状况
1
|
<
td
class
=
"status"
th:if
=
"${#strings.isEmpty(status)}"
th:text
=
"这状态为空"
>这里显示状态不为空</
td
>
|