0
我使用sencha 2.3.1和下面的代码(在app.js中)在页面上显示一些html内容。但没有任何显示。请告诉我错在哪里。在开始应用程序sencha touch上没有任何显示
Ext.application({
name: 'Sencha',
requires: ['Ext.tab.Panel'],
launch: function() {
//The whole app UI lives in this tab panel
Ext.Viewport.add({
xtype: 'tabpanel',
fullscreen: true,
tabBarPosition: 'bottom',
items: [
// This is the home page, just some simple html
{
title: 'Home',
iconCls: 'home',
cls: 'home',
scrollable: true,
html: [
'<img height=260 src="http://staging.sencha.com/img/sencha.png" />',
'<h1>Welcome to Sencha Touch</h1>',
"<p>Building the Getting Started app</p>",
'<h2>Sencha Touch (2.0.0)</h2>'
].join("")
}
]
})
}
});
发现错误。 1. Sencha不能在Firefox上运行。 2.试图直接运行indx.html文件,而不启动服务器。 – user3263192
看看我的答案对这个后 http://stackoverflow.com/questions/17542769/ext-ajax-request-not-working-in-browser/17552519#17552519 可以与网页文件运行安全被禁用。 – tabrindle