当前位置: 代码迷 >> JavaScript >> easyui combobox 搜寻速给接分 大侠们赶快来瞧瞧 作死的感觉
  详细解决方案

easyui combobox 搜寻速给接分 大侠们赶快来瞧瞧 作死的感觉

热度:827   发布时间:2013-12-19 00:33:34.0
easyui combobox 搜索速给接分 大侠们赶快来瞧瞧 作死的感觉
view 层中的combobox 已从后台得到数据 在编辑时能像百度搜索框那样 输入一个字就能从这些数据中得到有含这个字的所有数据 
$("#Country").combobox({
            valueField: 'Id',
            textField: 'ShowCn',
            onChange: function (newValue, olbValue) {
                //                if (vac.isEmpty(newValue)) return false;
                $(this).combobox("reload", "/BaseData/getCountryWithEmpty?nameCn=" + encodeURI(newValue));
            },
            onSelect: function (record) {
                $("#Country").combobox("setValue", record.ShowCn);
//                $("#tagid").val(record.Id);
            }
        })

我这样写是传参到后台得到数据  但不想传参可不可以直接得到  就如下图一样 输入“中”下拉框就要将含有“中”这个字的数据全部显示出来

------解决方案--------------------
楼主自己不好好看API。。木有办法

一次性加载所有数据就行过滤操作就行了
  相关解决方案