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
Class 只需在ExtJS中创建工具栏_Class_Extjs_Toolbar - Fatal编程技术网

Class 只需在ExtJS中创建工具栏

Class 只需在ExtJS中创建工具栏,class,extjs,toolbar,Class,Extjs,Toolbar,因此,我有一个带有顶部和底部工具栏的面板,它是在dockedItems配置中创建的: dockedItems: [ Ext.create('AM.view.TopToolbar',{}), // //This line alone breaks the app { //Toolbars xtype: 'toolbar', dock: 'bottom', items: [ { text: 'About', i

因此,我有一个带有顶部和底部工具栏的面板,它是在dockedItems配置中创建的:

dockedItems: [
    Ext.create('AM.view.TopToolbar',{}), //  //This line alone breaks the app
    { //Toolbars
        xtype: 'toolbar',
        dock: 'bottom',
        items: [
            { text: 'About', itemId: 'about' },
            '-',
            { text: 'Legal', itemId: 'legal' },
            ...
代码在FF中运行良好,但在IE9中中断。我认为这与create语句的语法有关,但我在论坛上找不到解决方案

下面是我的TopToolbar类:

Ext.define('AM.view.TopToolbar', {
    extend: 'Ext.toolbar.Toolbar',
    alias: 'widget.toptoolbar',
    defaults: { arrowCls: '' }, //Removing black arrow from toolbar items
    items: [
        { text : 'Tools', 
            menu : {
                items: [
                //rest of my toolbar items and menus
所有文件结构都正确且正常工作

名称空间为“AM”

Internet Explorer中的应用程序中断尚未在Chrome或Safari中尝试

我得到这个错误

: SCRIPT16389: Unspecified error. 
ext-all.js, line 38 character 51878
有什么想法吗


干杯

发布所有相关代码,请将我的工具栏类包括在内。IE中出现的错误是什么(可能很模糊)?错误:SCRIPT16389:未指定的错误。ext-all.js,第38行字符51878而不是ext-all.js尝试使用ext-all-debug.js,它会让您更好地了解出了什么问题(我的意思是第#行和字符#会指向一些可读的extjs代码)