1

我不断收到此错误:Uncaught Syntax Error: Unexpected Token ILLEGAL while running Ext JS 4,我在 Aptana studio 3 上使用 Sencha Touch 2。

这是我的代码:

Ext.application({ name: '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("")
                }
            ]

        });

    }
});
4

1 回答 1

1

失踪 '

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

于 2012-08-09T13:11:20.773 回答