导入头部定义
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
循环
<div class="layui-col-md4 layui-col-xs4 layui-col-sm4">
<div class="grid-demo ">
<select name="yqdzFwjglx">
<option th:each="jg : ${fwjgs}" th:value="${jg.id}" th:text="${jg.des}">
</select>
</div>
</div>
判断
<tr th:each="user:${users}">
<td th:if="${user.num} eq '123'" th:text="${user.username}">
</td>
</tr>
定义html网页部分
<div th:fragment="yqdz"></div>
导入html网页
<th:block th:include="/views/usermanager/yongqidizhiSelector :: yqdz"></th:block>