哪个是最好的移动Web应用程序开发框架
我正在将现有的基于 Java/J2EE 的 Web 应用程序转换为移动 Web 应用程序,该应用程序应支持 iPhone、Androind 设备、黑莓等。以及不同的屏幕尺寸,如 320x480、768x1024、1024x600 等。
I发现SenchaTouch、JQTouch和JqueryMobile是一些框架目前可用。
还有其他可用的框架吗?对于我的要求,哪个是正确的框架?
I am in the process of converting an existing Java/J2EE based web application into Mobile web application which should support iPhone, Androind devices, Blackberry etc. And also different screen sizes like 320x480, 768x1024, 1024x600 etc.
I found that SenchaTouch, JQTouch and JqueryMobile are some of the frameworks currently available.
Are there any other framworks available? and for the requirement I have, which is the right framework?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据我的经验,你提到的那些是最受欢迎的,但都不是理想的。 Sencha 是用 Ext JS 编写的,这意味着所有标记、逻辑和 JS 都嵌套在 .js 文件中。 Drew Neil 完成了一个很棒的教程系列,我发现它非常有帮助,但后来我决定不使用 Sencha,因为它的复杂性(特别是因为我的 jquery 背景)。由于其冗长且格式化的 HTML 始终输出到屏幕,因此速度也相当慢。另一方面,比较现有的选项,很明显 Sencha Touch 在复制本机应用程序外观方面做得非常出色。此外,它支持与 iphone 或 android 兼容的样式(以及它自己的简洁样式)
Jquery Mobile 仍处于 alpha 阶段,根据我的经验,它非常裸露,这意味着错误很多,而且它的外观也不是那么无缝。尝试一下在线演示,您会发现肯定缺少一些过渡和效果。然而,您确实拥有使用 jquery 编写的强大功能,这可能会让您更快、更轻松(我确实希望他们早点开始研究它,但它看起来非常有前途)。
我并没有过多地使用 JQTouch(顺便说一句,它属于 Sencha),但它看起来与 Jquery Mobile 非常相似。它也比较旧,我不太确定那里的发展状况。
From my experience, the ones you mentioned are the most popular ones, but neither is ideal. Sencha is written in Ext JS, which means all your markup, logic and JS are nested in a .js file. There was a great tutorial series done by Drew Neil, I found it extremely helpful but later I decided not to use Sencha because of its complicated nature (especially because of my jquery background). It was also considerably slow because of its verbosity and the formatted HTML always outputted to the screen. On the other hand, comparing the options out there, it's pretty obvious Sencha Touch does an amazing job replicating the native app look. Also, it supports styles compatible with either the iphone or android (as well as its own neat style)
Jquery Mobile is still in alpha, and from my experience it's very bare, which means bugs galore, and the look of it is not as seamless. Try the online demo and you'll notice some of the transitions and effects are definitely lacking. However, you do have the awesomeness of writing in jquery, which will probably make this quicker and easier on you (I do wish they'd started working on it earlier, but it looks very promising).
I haven't messed with JQTouch a whole lot (it belongs to Sencha btw), but it seems very similar to Jquery Mobile. It's also older and I'm not so sure where development stands there.
如果您有 Java 背景,您还可以查看 gwt-mobile-webkit 。您可能知道,GWT 利用了所有 Java 开发工具:IDE、类型安全编译器、调试器、测试框架等。gwt
-mobile-webkit 专注于基于 WebKit 的浏览器 (iOS/Android),但其他浏览器也是如此提到。恕我直言,如果您想要真正支持触摸的 Web 应用程序,您将必须为基于 WebKit 的浏览器和其他浏览器(BB 等)创建不同的应用程序。
If you come from Java background you might also look at gwt-mobile-webkit. GWT as you might know leverages all your java development tools: IDE, type-safe compiler, debuggers, testing frameworks, etc..
gwt-mobile-webkit is focused on WebKit based browsers (iOS/Android), but so do other that you mention. IMHO, if you want true touch-enabled webapps you will have to create different apps for WebKit based browsers and the rest (BB, etc..).