var searchs = new Ext.form.TextField({
name:'searchs',
fieldLabel:' 客户名称',
allowBlank:true,
maxLength:50
});
var btn = new Ext.Button({text:'搜索',
handler:function(){
var store1=grid.getStore();
var dep=Ext.get('searchs').getValue();
store1.filter('cname',dep);
}
});上面的代码以前在项目中正常不报错,什么都没改 ,但是现在突然报错了是怎么回事啊?
gird.getStore()和 Ext.get('searchs').getValue(); 都报js错误是怎么回事啊?
name:'searchs',
fieldLabel:' 客户名称',
allowBlank:true,
maxLength:50
});
var btn = new Ext.Button({text:'搜索',
handler:function(){
var store1=grid.getStore();
var dep=Ext.get('searchs').getValue();
store1.filter('cname',dep);
}
});上面的代码以前在项目中正常不报错,什么都没改 ,但是现在突然报错了是怎么回事啊?
gird.getStore()和 Ext.get('searchs').getValue(); 都报js错误是怎么回事啊?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货