Comopaction.on('beforequery',function(e){
var combo = e.combo;
if(!e.forceAll){
var value = e.query;
combo.store.filterBy(function(record,id){
var text = record.get(combo.displayField);
//用自己的过滤规则,如写正则式
return (text.indexOf(value)!=-1); //实现的核心
});
combo.expand();
return false;
}
});
extjs下拉框的联想查询
最新推荐文章于 2022-11-21 10:37:34 发布