首页 > 其他 > 详细

Thymeleaf常用标签

时间:2019-11-21 17:56:05      阅读:152      评论:0      收藏:0      [点我收藏+]

select

<select name="pAvailable" class="form-control m-b" required>
  <option th:selected="*{pAvailable eq ‘Y‘}" value="Y">可用</option>
  <option th:selected="*{pAvailable eq ‘N‘}" value="N">禁用</option>
</select>
<select name="pBelong" class="form-control m-b" th:with="type=${@dict.getType(‘belong‘)}" required>
  <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{pBelong}"></option>
</select>   //RUOYI

 

 

待续...

Thymeleaf常用标签

原文:https://www.cnblogs.com/julian-chang/p/11907087.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!