EasyUI多选下拉框的取值和赋值

版权声明:声明有个屁用,想转载就转! https://blog.csdn.net/h670816026/article/details/53196973


 

@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');
  }
}]; 


展开阅读全文

没有更多推荐了,返回首页