我正在尝试在我的设备或 Android 模拟器上运行我的应用程序,但我收到以下错误消息:
Uncaught TypeError: Cannot read property 'isReady' of undefined sencha-touch-all.js:21
索引.html
<!DOCTYPE html>
<html>
<head>
<title>Sencha Touch Demo 2</title>
<link rel="stylesheet" type="text/css" href="./touch2/resources/css-debug/sencha-touch.css">
<script type="text/javascript" charset="utf-8" src="cordova-2.2.0.js"></script>
<script type="text/javascript" src="./touch2/sencha-touch-all.js"></script>
<script type="text/javascript" src="myapp.js"></script>
</head>
</html>
myapp.js
Ext.require([ 'Ext.MessageBox' ]);
Ext.require([ 'Ext.Label' ]);
Ext.Loader.setConfig({
enabled: true
});
Ext.application({
name: 'touch-demo',
controllers: [
'Main'
],
models: [
'contato'
],
stores: [
'contatos',
'remotecontatos'
],
views: [
'contatoslist',
'ContatosForm',
'remoteListContato'
],
viewport: {
layout: {
type: 'card',
animation: {
type: 'slide',
duration: 1000
}
}
},
launch: function(){
}
});
我能做些什么?请帮忙。