就可以构建Sencha SDK Tools本机应用程序的解决方案。
如果您已正确构建项目,则可以使用以下命令构建原生应用程序。这也将缩小JavaScript大小:这里讨论
C:\wamp\www\SenchaApp>sencha app build -e native -d pkg/native -a archive
[INFO] Deploying your application to C:\wamp\www\SenchaApp\pkg\native
[INFO] Copied sdk/sencha-touch.js
[INFO] Copied app.js
[INFO] Copied resources/css/app.css
[INFO] Copied resources/images
[INFO] Copied resources/icons
[INFO] Copied resources/loading
[INFO] Copied resources/data
[INFO] Resolving your application dependencies...
[INFO] Found 18 dependencies. Concatenating all into app.js...
[INFO] Processed sdk/sencha-touch.js
[INFO] Minifying sdk/sencha-touch.js
[INFO] Processed app.js
[INFO] Minifying app.js
[INFO] Minifying resources/css/app.css
[INFO] Minified app.js
[INFO] Minified sdk/sencha-touch.js
[INFO] Minified resources/css/app.css
[INFO] Generated app.json
[INFO] Embedded microloader into index.html
[INFO] Packaging your application as a native app...
退房类似的性能问题... http://stackoverflow.com/questions/10338020/sencha-touch-2-android-performance和HTTP:// stackoverflow.com/questions/10085637/phonegap-1-4-wrapping-sencha-touch-2-x-what-about-performance/10085756#10085756 –
感谢您的答复,我已经尝试按照您的答案保持我的尽可能最小的DOM,动态处理视图,但我不能用sencha-touch.js做很多事情,除了缩小和压缩以及创建初始加载问题 –
任何人都可以帮助我?仍然没有找到这个解决方案 –