Chrome Uncaught语法错误:意外令牌ILLEGAL

时间:2012-08-09 13:00:59

标签: html5 extjs sencha-touch aptana sencha-touch-2

我一直收到这个错误:Uncaught语法错误:运行Ext JS 4时意外的令牌ILLEGAL,我在Aptana studio 3上使用Sencha Touch 2.

这是我的代码:

Ext.application({         名称:'Sencha',         launch:function(){

        Ext.create('Ext.tab.Panel', {
            fullscreen: true,
            tabBarPosition: 'bottom',
            defaults: {
                styleHtmlContent: true
            },

            items: [
                {
                    title: 'Home Page',
                    iconCls: 'home',
                    html: [
                        '<img width="30%" src="http://staging.sencha.com/img/sencha.png" />',
                        '<h1>Welcome to Sencha Touch</h1>',
                        "<p>you're creating the Getting Started app. This demonstrates how ",
                        "to use tabs, lists and forms to create a simple app</p>",
                        '<h2>Sencha Touch 2 </h2>
                    ].join("")
                }
            ]

        });

    }
});

1 个答案:

答案 0 :(得分:1)

缺少'

'<h2>Sencha Touch 2 </h2>'