javascript 用于基于 JS/HTML5 Webkit 的移动开发的轻量级 UI 框架,具有不错的列表性能
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9856232/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Lightweight UI Framework for JS/HTML5 Webkit-based mobile development with decent list performance
提问by Gopherkhan
My question is slightly different from Looking for a recommendation for a lightweight mobile HTML5/JavaScript framework
我的问题与寻找轻量级移动 HTML5/JavaScript 框架的推荐略有不同
I'm joining a JS/HTML5 project that is targeting the ipad, currently using Backbone.js for MVC and Zepto for dom manipulation. They've experimented with jQuery mobile and found the list performance to be underwhelming.
我正在加入一个针对 ipad 的 JS/HTML5 项目,目前使用 Backbone.js 进行 MVC 和 Zepto 进行 dom 操作。他们已经对 jQuery mobile 进行了试验,发现列表性能并不理想。
Basically I'm looking for an alternative mobile Javascript UI framework with a non-viral OS license (Sencha seems out with gpl 3, and I'd like something focused purely on ui widgets), which provides performant dynamic lists and a general set of iOS style ui widgets. I do have experience with enyo, but I don't particularly like it, so that's out of the question as well.
基本上,我正在寻找具有非病毒操作系统许可证的替代移动 Javascript UI 框架(Sencha 似乎与 gpl 3 一起出现,我想要一些纯粹专注于 ui 小部件的东西),它提供了高性能的动态列表和一组通用的iOS 风格的 ui 小部件。我确实有使用 enyo 的经验,但我不是特别喜欢它,所以这也是不可能的。
Any suggestions?
有什么建议?
采纳答案by dmp
Try Chocolate Chip UI- BSD Licence too.
也尝试Chocolate Chip UI- BSD 许可证。
Discussing performance - on the iPad, don't forget that if you want to have hardware accelerated CSS transforms (you want this), then you must be using webkit transforms / translates etc. Thomas Fuchs (author of Zepto/scriptaculous) wrote up a pretty good article talking about these issues, which I would suggest is essential reading, despite being from 2010.
讨论性能——在 iPad 上,不要忘记,如果你想要硬件加速 CSS 转换(你想要这个),那么你必须使用 webkit 转换/翻译等。 Thomas Fuchs(Zepto/scriptaculous 的作者)写了一篇谈论这些问题的好文章,尽管是 2010 年的文章,但我认为这是必不可少的阅读。
回答by AurA
This site gives all the options regarding mobile JS framework
该站点提供了有关移动 JS 框架的所有选项
http://sixrevisions.com/javascript/mobile%C2%A0web-development-frameworks/
http://sixrevisions.com/javascript/mobile%C2%A0web-development-frameworks/
But my suggestion is go for JQuery Mobile
但我的建议是使用JQuery Mobile
回答by Steve Benner
I am in an almost identical situation, having used jQueryMobile for nearly a year, and finding myself completely unimpressed at this point. I have to say that I'm extremelyexited for Lungo. The UI looks fantastic and is coded semantically.
我处于几乎相同的情况,使用 jQueryMobile 将近一年,但发现自己在这一点上完全不为所动。我不得不说我对Lungo非常兴奋。用户界面看起来很棒,并且是按语义编码的。
In fact the whole framework has a superior construction quality and is highly optimized for mobile. It doesn't carry a huge footprint like JQM, the underlying QuoJSlibrary is very powerful and provides nearly all the same idioms as jQuery. There is an app demo here.
事实上,整个框架具有卓越的构建质量,并且针对移动设备进行了高度优化。它不像 JQM 那样占用大量资源,底层的QuoJS库非常强大,并且提供了几乎所有与 jQuery 相同的习惯用法。有一个应用程序演示这里。
There is a new interesting framework, Jo, but I haven't looked too much into it. It could be a good choice.
有一个新的有趣的框架Jo,但我没有过多研究它。这可能是一个不错的选择。
I'm also liking another unique library called Topcoat.iobecause it's only CSS based, with no assumptions. Very clean and performant.
我也喜欢另一个名为Topcoat.io 的独特库,因为它仅基于 CSS,没有任何假设。非常干净和高性能。
回答by Chibuzor
You could also do your dom with HTML and then use nativecssfor your styling, of course with cordovain the bonnet.
你也可以用 HTML 来做你的 dom,然后使用nativecss 来做你的样式,当然在引擎盖中使用cordova。
回答by Juan G. Hurtado
jQuery Mobile 1.1.0 [1] looks pretty nice. Much better performance than previous versions, focused on widgets, and dual licensed under the MIT or GPL Version 2 licenses.
jQuery Mobile 1.1.0 [1] 看起来很不错。性能比以前的版本好得多,专注于小部件,并在 MIT 或 GPL 版本 2 许可下获得双重许可。
Actually it's on RC1 state, but hopefully we'll get final release soon.
实际上它处于 RC1 状态,但希望我们能尽快获得最终版本。
I'm sure you already know jQuery Mobile (who doesn't? :P), but maybe you should try this new version, just to test new performance.
我确定您已经知道 jQuery Mobile(谁不知道?:P),但也许您应该尝试这个新版本,只是为了测试新的性能。
回答by Chibuzor
If you are interested in performance, I suggest Jquery Mobile
如果您对性能感兴趣,我建议使用Jquery Mobile