【发布时间】: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