bootstrap下拉框实现
后台代码
List<DataDictItem> rvorderTypeLists = dataDictService.selectTypeByDatakey(RVORDERTYPE);
model.addAttribute("rvorderTypeList", rvorderTypeLists);
return "页面";
前台代码
<select class="form-control customSelect" title="" id="orderState">
<option value="">--全部--</option>
<c:forEach items="${orderStateList}" var="orderStateList">
<option value="${orderStateList.value }">${orderStateList.name }</option>
</c:forEach>
</select>