我不断收到此错误: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("")
}
]
});
}
});