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(); } } }]
相关文章推荐
- js报错:TypeError: document.GetElementById is not a function
- Uncaught TypeError: UE.getEditor is not a function
- 海康web视频插件错误:TypeError: c.HWP_GetLocalConfig is not a function
- Uncaught TypeError: XXX.getTime is not a function
- js报错:TypeError: document.GetElementById is not a function
- 奇怪的TypeError: Error #1006: getInstance is not a function.
- Uncaught TypeError: this.canvas.getContext is not a function
- dva -react TypeError: root.findRouters(...).getRouterInfo is not a function
- TypeError: atlas.getSpriteFrame is not a function
- TypeError: Error #1006: dispatchEvent is not a function
- Uncaught TypeError: undefined is not a function
- typeError: form.submit is not a function
- Uncaught TypeError: string is not a function
- Backbone 或 jQuery 出错,异常:Uncaught TypeError: object is not a function
- Google Chrome: Uncaught TypeError: String is not a function.
- TypeError: s[y] is not a function 表单提交错误
- 关于 "Uncaught TypeError: Property 'submit' of object #<HTMLFormElement> is not a function" 的解决方案
- Uncaught TypeErroe: Uncaught TypeError: Cannot call method 'push' of undefined 和 Uncaught TypeError: undefined is not a function
- TypeError: a.replace is not a function 错误
- chrome浏览器Uncaught TypeError: object is not a function问题解决