TypeError:使用tabpanel时,EXTJS 4中的项为空
我是新手。我正在处理ExtJS4,需要您的帮助来解决这个问题 我遇到了一个错误 “TypeError:项为空 on(ename,fn,scope,options);ext-all-debug.js(第13795行) 单击调用函数doThis()的链接时,与函数关联的选项卡面板将消失。以下是供您参考的函数TypeError:使用tabpanel时,EXTJS 4中的项为空,extjs,Extjs,我是新手。我正在处理ExtJS4,需要您的帮助来解决这个问题 我遇到了一个错误 “TypeError:项为空 on(ename,fn,scope,options);ext-all-debug.js(第13795行) 单击调用函数doThis()的链接时,与函数关联的选项卡面板将消失。以下是供您参考的函数 function doThis() { var xxtabPanel = Ext.create('Ext.tab.Panel', { renderTo : Ext.fly
function doThis()
{
var xxtabPanel = Ext.create('Ext.tab.Panel', {
renderTo : Ext.fly('content').update(""),
autoHeight:true,
id:'xxtabPanel',
tabHeight:200,
activeTab:0,
items : [ {
id:'tab1',
itemId:'Tab1',
frame:true,
title : 'Tab one Details',
items :item1 //FormPanel
}, {
id:'tab2',
frame:true,
itemId:'Tab2',
title : 'Tab two Details',
items:item2 //FormPanel
}, {
id:'tab3',
frame:true,
itemId:'Tab3',
title : 'Tab three Details',
items :item3 //FormPanel
} ],
listeners: {
'tabchange': function(tp, p) {
tp.doLayout();
}
}
});}
提前感谢。期待您的回复。您在哪里尝试渲染选项卡面板?以下是您的示例: