您的位置:首页 > Web前端 > JavaScript

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