1

我的笔记本电脑上的 python 单线程服务器(类似 django 的 runserver)上运行了一个完整的 Sencha Touch2 示例应用程序。它使用 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 上使用我的 android Samsung Galaxy Tab 10.1 (android 3.x) 通过 LAN IP 访问 sencha 应用程序(我也尝试过 android 手机)

在这里,我看到了我的加载指示器,然后 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 是否适合我的网站的触控版本。很遗憾我不能尝试我漂亮的触摸滑动轮播:(我必须在我的 chrome 上滑动鼠标并满足于我蹩脚的成就。让它发挥作用一直是我昨晚的目标,我很想看到它发挥作用。

PS 实际的例子确实很好地在标签上工作。但它可能是在 ST2 的不同(旧)版本中制作的。我在这里使用 2.0.2。我复制粘贴了示例中的大部分代码,并更改了一些小东西以适应我的审美需求。

TIA

4

0 回答 0