easyUI 实现自动补全功能
1 在js部分实现
2 easyUI 在 html部分实现
1 在js部分实现
{field:'fkGuestUser',title:'对口接待单位联络员',align:'center',sortable:false,width : 120,
editor : {type:'combobox',
options:{
mode: 'remote',
url : 'userAction!loginCombobox.action',
valueField : 'cid',
textField : 'cname'
}
},
formatter:function(value,row,index){
return sy.fs(sy.getTextColor_leftHTML(""), row.fkGuestUserName, row.fkGuestUserName);
}
},
2 easyUI 在 html部分实现
//对口接待单位联络员
$("#fkGuestUser").combobox({
mode: 'remote',
url : 'userAction!loginCombobox.action',
valueField : 'cid',
textField : 'cname'
});