<select name="device" id="device" lay-verify="required" lay-search=""> <option value="">请选择</option> <option th:each="device,iterStat:${devices}" th:text="${device.name}" th:value="${device.id}" ></option> </select>
本文介绍了一种使用HTML与Thymeleaf实现的设备下拉选择器。该选择器允许用户从已有的设备列表中进行选择,并确保了选择操作为必填项。
<select name="device" id="device" lay-verify="required" lay-search=""> <option value="">请选择</option> <option th:each="device,iterStat:${devices}" th:text="${device.name}" th:value="${device.id}" ></option> </select>
2964

被折叠的 条评论
为什么被折叠?