thymeleaf页面 th:each迭代循环对象集合到select下拉框
<select name="ChanneltypeID" class="layui-select">
<option th:each="dict : ${type}" th:value="${dict.ChannelTypeID}" th:text="${dict.ChannelTypeName }">
</select>
直接在option标签里写th:each 以及 th:value th:text 即可
共有 0 条评论