Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
TypeError:使用tabpanel时,EXTJS 4中的项为空_Extjs - Fatal编程技术网

TypeError:使用tabpanel时,EXTJS 4中的项为空

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

我是新手。我正在处理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('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();
            }
        }

    });} 

提前感谢。期待您的回复。

您在哪里尝试渲染选项卡面板?以下是您的示例: