android - sencha touch 总出现白屏,主要因为XMLHttpRequest cannot load file:///E:/sencha-touch-2.0.0-pr1/src/Panel.js?_dc=1380368900153. Cross origin requests are only supported for HTTP.
PHP中文网
PHP中文网 2017-04-17 11:22:39
0
2
389

当我看见浏览器出现的问题,一堆,都不知道是什么,整个sencha touch2 做的东西都无法实现,都出现白屏啦

GET file:///E:/sencha-touch-2.0.0-pr1/test/sencha-touch-debug.css  
XMLHttpRequest cannot load file:///E:/sencha-touch-2.0.0-pr1/src/Panel.js?_dc=1380368900153. Cross origin requests are only supported for HTTP. sencha-touch-debug.js:7381
Ext.apply.loadScriptFile sencha-touch-debug.js:7381
Ext.apply.require sencha-touch-debug.js:7559
Ext.apply.syncRequire sencha-touch-debug.js:7421
(anonymous function) sencha-touch-debug.js:3130
Ext.ClassManager.instantiate sencha-touch-debug.js:6131
(anonymous function) sencha-touch-debug.js:3130
Ext.application.launch app.js:8
Ext.define.onBeforeLaunch Application.js?_dc=1380368899665:227
Ext.apply.onDocumentReady sencha-touch-debug.js:8609
fn sencha-touch-debug.js:7671
Ext.apply.onReady sencha-touch-debug.js:7676
Ext.onReady sencha-touch-debug.js:7731
Ext.define.constructor Application.js?_dc=1380368899665:152
Class sencha-touch-debug.js:4917
config.onReady sencha-touch-debug.js:8273
Ext.apply.onDocumentReady sencha-touch-debug.js:8609
fn sencha-touch-debug.js:7671
Ext.apply.triggerReady sencha-touch-debug.js:7650
(anonymous function) sencha-touch-debug.js:3116
Ext.apply.refreshQueue sencha-touch-debug.js:7265
Ext.apply.refreshQueue sencha-touch-debug.js:7266
Ext.apply.onFileLoaded sencha-touch-debug.js:7594
(anonymous function) sencha-touch-debug.js:3116
onLoadFn
Uncaught TypeError: object is not a function
(anonymous function)
Ext.ClassManager.instantiate sencha-touch-debug.js:6137
(anonymous function) sencha-touch-debug.js:3130
Ext.application.launch app.js:8
Ext.define.onBeforeLaunch Application.js?_dc=1380368899665:227
Ext.apply.onDocumentReady sencha-touch-debug.js:8609
fn sencha-touch-debug.js:7671
Ext.apply.onReady sencha-touch-debug.js:7676
Ext.onReady sencha-touch-debug.js:7731
Ext.define.constructor Application.js?_dc=1380368899665:152
Class sencha-touch-debug.js:4917
config.onReady sencha-touch-debug.js:8273
Ext.apply.onDocumentReady sencha-touch-debug.js:8609
fn sencha-touch-debug.js:7671
Ext.apply.triggerReady sencha-touch-debug.js:7650
(anonymous function) sencha-touch-debug.js:3116
Ext.apply.refreshQueue sencha-touch-debug.js:7265
Ext.apply.refreshQueue sencha-touch-debug.js:7266
Ext.apply.onFileLoaded sencha-touch-debug.js:7594
(anonymous function) sencha-touch-debug.js:3116
onLoadFn sencha-touch-debug.js:7284
PHP中文网
PHP中文网

认证高级PHP讲师

全員に返信(2)
大家讲道理

本地不允许xmlhttpger

いいねを押す +0
迷茫

把你的工程放到根目录下加载,localhost/...

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!