ExtJs面向对象错误
2009-03-06 17:09
183 查看
this.ComboFunction=new Business.sys.ComboFunction({
id:'FunctionId',
key:'FunctionId'
});
GM.FormItem= function(config){
this.config = config||{};
this.ComboFunction=new Business.sys.ComboFunction({
id:'FunctionId',
key:'FunctionId'
});
var defConfig = {
frame: true,
labelWidth: 100,
defaults: {
layout: "form",
xtype: 'textfield'
},
items:[{
key:'ID',
fieldLabel: '帮助ID',
allowBlank:true,
readOnly:true
},{
key:'SortId',
xtype:'hidden'
},{
fieldLabel: '标题',
allowBlank:false,
maxLength:36,
key: 'Title'
},{
fieldLabel: '所属类别',
maxLength:36,
readOnly:true,
key: 'SortTitle'
},{
fieldLabel: '关键字',
maxLength:36,
key: 'Keywords'
},this.ComboFunction,{
hideLabel:true,
fieldLabel: '内容',
xtype:'bhtmleditor',
height:500,
key: 'Content'
}]
};
Ext.applyIf(this.config, defConfig);
GM.FormItem.superclass.constructor.call(this, this.config);alert(this.ComboFunction);
}
在创建窗体第一次显示,第二次以后就不显示combo
id:'FunctionId',
key:'FunctionId'
});
GM.FormItem= function(config){
this.config = config||{};
this.ComboFunction=new Business.sys.ComboFunction({
id:'FunctionId',
key:'FunctionId'
});
var defConfig = {
frame: true,
labelWidth: 100,
defaults: {
layout: "form",
xtype: 'textfield'
},
items:[{
key:'ID',
fieldLabel: '帮助ID',
allowBlank:true,
readOnly:true
},{
key:'SortId',
xtype:'hidden'
},{
fieldLabel: '标题',
allowBlank:false,
maxLength:36,
key: 'Title'
},{
fieldLabel: '所属类别',
maxLength:36,
readOnly:true,
key: 'SortTitle'
},{
fieldLabel: '关键字',
maxLength:36,
key: 'Keywords'
},this.ComboFunction,{
hideLabel:true,
fieldLabel: '内容',
xtype:'bhtmleditor',
height:500,
key: 'Content'
}]
};
Ext.applyIf(this.config, defConfig);
GM.FormItem.superclass.constructor.call(this, this.config);alert(this.ComboFunction);
}
在创建窗体第一次显示,第二次以后就不显示combo
相关文章推荐
- 学员会诊之01:那些典型的面向对象错误
- php面向对象全攻略 (十一)__toString()用法 克隆对象 __call处理调用错误
- Extjs window弹出框 第二次打开时会报:【'addCls' 为空或不是对象】错误
- PHP面向对象错误处理笔记
- extjs之面向对象基础
- (四)PHP面向对象理论4---异常和错误处理
- ExtJS中的面向对象理解 javascript
- 错误的面向对象和分类带来的悲剧
- extjs 面向对象实践
- 04_php面向对象-错误调试-异常
- ExtJs中的 'insertAdjacentHTML' 为空或不是对象错误原因及解决办法
- Extjs Microsoft JScript 运行时错误: 对象不支持“createContextualFragment”属性或方法
- ExtJS面向对象
- php面向对象全攻略 (十一)__toString()用法 克隆对象 __call处理调用错误
- 一个程序员的爱情:面向错误的对象
- extJS 在面向对象方面的支持
- 【ExtJS】错误:this.config[...].width为空或不是对象
- 被错误估计的面向对象
- 26_面向对象程序设计(原型【九】模拟extjs底层继承方式
- 02_EXTJS在面向对象所出的努力