您的位置:首页 > 其它

TypeError: record.get is not a function

2014-08-21 13:13 1191 查看
错误信息为:TypeError: record.get is not a function
custCardCode.setValue(record.get('custCardCode'));
items : [{
xtype : 'button',
text : '确定',
listeners : {
'click':function(){
var grid = Ext.getCmp('custCardCode-grid');
var record = grid.getSelectionModel().getSelection();
if(record.length == 0){
Ext.Msg.alert('提示', '请选择一条记录!');
return;
}
var custCardCode = Ext.getCmp(me.custCardCodeId);
if(custCardCode){
custCardCode.setValue(record.get('custCardCode'));  //提示错误处
//解决方法  custCardCode.setValue(record[0].get('custCardCode'));
}
me.close();
}
}
}]

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: