我的笔记本电脑上有一个完全正常运行的Sencha Touch2示例应用程序,运行在我的python单线程服务器(django,如runserver)上。它使用jsonp加载轮播图像,类似于此处的示例http://edspencer.net/2012/02/building-a-data-driven-image-carousel-with-sencha-touch-2.html
它适用于我的Chrome,部分适用于Firefox。
我按照指南从Sencha Touch 2中的文档制作生产版本。所有这些在Chrome上也很好。以下是我看到的要求。
127.0.0.1 - - [03/Jul/2012 00:21:15] "GET /static/build/production/cache.manifest HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/app.json?1341246076009 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/src/log/Logger.js?_dc=1341246076006 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/deltas/app.js/812d759b7c7a366ab0976c13044b2cd38f3444dc.json?1341246076040 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/src/log/Base.js?_dc=1341246076130 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/src/log/writer/Console.js?_dc=1341246076307 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/src/log/writer/Writer.js?_dc=1341246076347 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/src/log/formatter/Formatter.js?_dc=1341246076386 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /static/build/production/src/log/formatter/Default.js?_dc=1341246076449 HTTP/1.1" 200 -
127.0.0.1 - - [03/Jul/2012 00:21:16] "GET /w00t/?_dc=1341246076539&page=1&start=0&limit=25&callback=Ext.data.JsonP.callback1 HTTP/1.1" 200 -
现在我在wifi上通过局域网IP(我试过Android手机)访问我的Android三星Galaxy Tab 10.1(android 3.x)
在这里,我看到我的装载指示器,然后blam ...黑色空白屏幕。 我看到请求不完整。这是请求:
192.168.0.109 - - [03/Jul/2012 00:24:24] "GET /static/build/production/index.html HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:24] "GET /static/build/production/cache.manifest HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:24] "GET /static/build/production/app.json?1341246263383 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:24] "GET /favicon.ico HTTP/1.1" 404 -
192.168.0.109 - - [03/Jul/2012 00:24:24] "GET /static/build/production/resources/css/app.css?1341246263429 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:24] "GET /static/build/production/sdk/sencha-touch.js?1341246263432 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:25] "GET /static/build/production/app.js?1341246263436 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:26] "GET /static/build/production/src/log/Logger.js?_dc=1341246265378 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:26] "GET /static/build/production/app.json?1341246265382 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:27] "GET /static/build/production/src/log/Base.js?_dc=1341246265428 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:27] "GET /static/build/production/src/log/writer/Console.js?_dc=1341246265780 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:27] "GET /static/build/production/src/log/writer/Writer.js?_dc=1341246265830 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:27] "GET /static/build/production/src/log/formatter/Formatter.js?_dc=1341246265870 HTTP/1.1" 200 -
192.168.0.109 - - [03/Jul/2012 00:24:27] "GET /static/build/production/src/log/formatter/Default.js?_dc=1341246265912 HTTP/1.1" 200 -
它总是卡在Default.js
我不是JS忍者,并且对我的网站的触控友好版本评估Sencha touch 2。 很遗憾我不能尝试我漂亮的触摸滑动旋转木马:(我必须用鼠标滑动我的铬合金并且满足于我的蹩脚成就。让这个工作一直是我昨晚的目标,我希望看到它有效。
P.S。实际的例子可以很好地在选项卡上工作。但它本可以在ST2的不同(较旧)版本中制作。我在这里使用2.0.2。我复制粘贴了示例中的大部分代码,并改变了一些小的东西以符合我的审美欲望。
TIA