2012-08-09 86 views
1

我不断收到此错误:未捕获的语法错误:意外的标记非法,同时运行的Ext JS 4,我在工作室集锦使用煎茶触摸2 3铬未捕获的语法错误:意外的标记非法

这里是我的代码:

Ext.application({ 名: '煎茶', 推出:函数(​​){

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

     }); 

    } 
}); 
+0

尝试JSLint,它可以帮助查找JavaScript错误 – 2012-08-09 16:35:25

回答

1

缺少'

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

相关问题