EasyUI多選下拉框的取值和賦值
阿新 • • 發佈:2019-01-08
@RequestMapping("/getCodeList") public void getCodeList(HttpServletResponse resp){ ResUtil.resp(resp,JSON.toJSON(bizGuideMapper.getCodeList()).toString().toLowerCase()); } @Select("select id,NAME as text from BIZ_DOWNLOAD" ) @ResultType(value=HashMap.class) public List<Map<String, String>> getCodeList();
<table class="grid"> <tr> <td> 資料下載: </td> <td> <input id="downloadDoc" name="downloadDoc" value="${bizGuide.downloadDoc}" style="width:435px" class="easyui-combobox" data-options="required:false,multiple:true,panelHeight:120, editable:false,textField:'text',valueField:'id', url:'${ctx}/bizGuideCtrl/getCodeList.do'" /> </td> </tr> </table>
easyui 下拉框 清空下拉值的按鈕
$.fn.combobox.defaults.icons=[{
iconCls:'icon-clear',
handler:function(e){
//alert($(e.handleObj.data.target).combobox('getValue'));
$(e.handleObj.data.target).combobox('clear');
}
}];