【问题标题】:Chrome Uncaught Syntax Error: Unexpected Token ILLEGALChrome 未捕获语法错误:意外令牌非法
【发布时间】:2012-08-09 13:00:59
【问题描述】:

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

这是我的代码:

Ext.应用程序({ 名称:'煎茶', 启动:函数(){

        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("")
                }
            ]

        });

    }
});

【问题讨论】:

  • 试试 JSLint,它可以帮助找到 javascript 错误

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


【解决方案1】:

缺少'

'&lt;h2&gt;Sencha Touch 2 &lt;/h2&gt;'

【讨论】:

    猜你喜欢
    • 2012-09-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-20
    • 2012-10-18
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多