Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/373.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

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
Javascript sencha touch 2中的网格_Javascript_Extjs_Grid_Sencha Touch - Fatal编程技术网

Javascript sencha touch 2中的网格

Javascript sencha touch 2中的网格,javascript,extjs,grid,sencha-touch,Javascript,Extjs,Grid,Sencha Touch,我是Sencha touch的新手,我喜欢通过编辑app.js文件在我的应用程序中集成网格 这是app.js的内容 Ext.application({ name: 'Sencha', launch: function() { Ext.create('Ext.data.TreeStore', { storeId: 'TreeStore', fields: ['title', 'link', 'author', 'contentSnippet', 'co

我是Sencha touch的新手,我喜欢通过编辑app.js文件在我的应用程序中集成网格 这是app.js的内容

 Ext.application({
name: 'Sencha',

launch: function() {

    Ext.create('Ext.data.TreeStore', {
        storeId: 'TreeStore',
        fields: ['title', 'link', 'author', 'contentSnippet', 'content', {
            name: 'leaf',
            defaultValue: true
        }],
        root: {
            leaf: false
        },
        proxy: {
            type: 'jsonp',
            url: 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://feeds.feedburner.com/SenchaBlog',
            reader: {
                type: 'json',
                rootProperty: 'responseData.feed.entries'
            }
        }
    });     
    Ext.create("Ext.tab.Panel", {
        fullscreen: true,
        tabBarPosition: 'bottom',

        items: [
            {
                xtype: 'nestedlist',
                title: 'Menu 1',
                iconCls: 'star',
                displayField: 'title',

                store: 'TreeStore',

                detailCard: {
                    xtype: 'panel',
                    scrollable: true,
                    styleHtmlContent: true
                },

                listeners: {
                    itemtap: function(nestedList, list, index, element, post) {
                        this.getDetailCard().setHtml(post.get('content'));
                    }
                }
            },
            {
                xtype: 'grid',
                title: 'GRID',
                requires: ['Ext.grid.Grid',
                   'Ext.grid.HeaderGroup',
                   'Ext.grid.plugin.Editable',
                   'Ext.grid.plugin.ViewOptions',
                   'Ext.grid.plugin.MultiSelection',
                   'Ext.grid.plugin.ColumnResizing',
                   'Ext.grid.plugin.SummaryRow'
                  ]
            }
        ]
    });
}
}))

它向我显示了一个错误“未捕获错误:[Ext.createByAlias]无法创建无法识别的别名的实例:widget.grid” 有没有办法纠正这些错误或者我的步骤错了


提前感谢

Sencha Touch Grid仅在Sencha Touch Complete(付费)产品中提供。如果您尚未购买Sencha Touch Complete,则网格组件不可用。如果您确实拥有Touch Complete SDK,那么这可能是您的需求的问题。Requires不应位于items:[]配置中,它应该是类/文件顶部的Requires。在您的代码示例中,它将位于应用程序配置本身之下

Sencha Touch Grid仅在Sencha Touch Complete(付费)产品中提供。如果您尚未购买Sencha Touch Complete,则网格组件不可用。如果您确实拥有Touch Complete SDK,那么这可能是您的需求的问题。Requires不应位于items:[]配置中,它应该是类/文件顶部的Requires。在您的代码示例中,它将位于应用程序配置本身之下

Sencha Touch Grid仅在Sencha Touch Complete(付费)产品中提供。如果您尚未购买Sencha Touch Complete,则网格组件不可用。如果您确实拥有Touch Complete SDK,那么这可能是您的需求的问题。Requires不应位于items:[]配置中,它应该是类/文件顶部的Requires。在您的代码示例中,它将位于应用程序配置本身之下

Sencha Touch Grid仅在Sencha Touch Complete(付费)产品中提供。如果您尚未购买Sencha Touch Complete,则网格组件不可用。如果您确实拥有Touch Complete SDK,那么这可能是您的需求的问题。Requires不应位于items:[]配置中,它应该是类/文件顶部的Requires。在您的代码示例中,它将位于应用程序配置本身之下

看一看

这可能会有帮助,我在我的项目中使用过

如上所述,Sencha Touch Grid仅在Sencha Touch Complete(paid)产品中可用,因此它在您的“toch”目录中不可用,因此当您尝试加载“Ext.Grid.Grid”时会抛出错误

毫无疑问。。请随意提问。

看看

这可能会有帮助,我在我的项目中使用过

如上所述,Sencha Touch Grid仅在Sencha Touch Complete(paid)产品中可用,因此它在您的“toch”目录中不可用,因此当您尝试加载“Ext.Grid.Grid”时会抛出错误

毫无疑问。。请随意提问。

看看

这可能会有帮助,我在我的项目中使用过

如上所述,Sencha Touch Grid仅在Sencha Touch Complete(paid)产品中可用,因此它在您的“toch”目录中不可用,因此当您尝试加载“Ext.Grid.Grid”时会抛出错误

毫无疑问。。请随意提问。

看看

这可能会有帮助,我在我的项目中使用过

如上所述,Sencha Touch Grid仅在Sencha Touch Complete(paid)产品中可用,因此它在您的“toch”目录中不可用,因此当您尝试加载“Ext.Grid.Grid”时会抛出错误

毫无疑问。。请随便问