标签的使用

1.运用Thymeleaf显示下拉选的值和修改值

<select name="status" id="" style="180px">
<th:block th:each="status : ${statuss}">
<option th:value="${status}" th:text="${status}"
th:selected="${status == bug.status}"></option>
</th:block>
</select>


2. 使用thymeleaf的情况下,在表格中添加超链接
<td><a th:href="@{'edit?id='+${li.id}}"><span th:text="${li.bugDesc}"></span></a></td>
原文地址:https://www.cnblogs.com/wangzhaoshuang/p/8462076.html