码迷,mamicode.com
首页 > 其他好文 > 详细

下拉框的使用

时间:2018-02-23 15:53:41      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:blank   ==   log   ref   span   表格   get   body   显示   

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

<select name="status" id="" style="width: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>

下拉框的使用

标签:blank   ==   log   ref   span   表格   get   body   显示   

原文地址:https://www.cnblogs.com/wangzhaoshuang/p/8462076.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!