EasyUI combogrid使用手机号查询客户列表

HTML

<div class="tip">客户名称</div>
<div class="content"><select id="enterprise" class="easyui-combogrid" style="width:80% ; height: 30px;"></select></div>

 

JS

$("#enterprise").combogrid({
    panelWidth: 400,
    idField: 'id',
    textField: 'enterprise',
    url: '../_Datas/xxx/xxx.ashx?o=getmemberbymobile',
    method: 'get',
    mode: 'remote',
    columns: [[
        { field: 'id', title: '编号', hidden: 'true' },
        { field: 'enterprise', title: '客户名称' , width: 380 }
    ]],
    fitColumns: true
});

 

输入框内容发生变化时会重新请求 ASHX,并加参数q,为输入的内容。

posted @ 2015-04-04 10:50  我知道你的存在  阅读(208)  评论(0编辑  收藏  举报