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

HTML

<div class="tip">客户名称</div>
<div class="content"><select id="enterprise" class="easyui-combogrid" style="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: '客户名称' ,  380 }
    ]],
    fitColumns: true
});

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

原文地址:https://www.cnblogs.com/chenliang-zibo/p/4391750.html