PhoneGap或JqueryMobile? [英] PhoneGap or JqueryMobile?

查看:92
本文介绍了PhoneGap或JqueryMobile?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在PhoneGap(Cordova)上构建和应用了这个应用,并遇到了很多困难。因此我想我的下一个版本将是与jQuery Mobile。



我想知道是否有人有两个经验,并有推荐或偏好?

解决方案

JQM只是帮助您构建一个针对移动设备优化的网页/应用程序,但它仍然只是一个网页。在iOS上,您可以将一个网络应用程序固定到主屏幕,当点击/点击时打开一个单独的浏览器实例,并提供一些元标记,使您的Web应用程序看起来更像一个本机应用程序(例如,您可以隐藏状态栏在屏幕的顶部,并提供一个启动画面)。但在Android上(至少在ICS,不知道关于Jelly bean),而你可以固定web应用程序到您的主屏幕,它只是作为一个快捷方式,并打开它作为浏览器中的另一个选项卡。我不确定您在Windows Phone上的网络应用程序有哪些选项。



Phonegap只是为您的网络应用程序使用webview(浏览器实例)构建本机应用程序包装器并允许您访问设备API。



基本上这两个不是相互排斥的,你可以使用JQM构建你的web应用程序,并且仍然包装在phonegap可能还是会遇到你遇到的任何困难),或者你可以跳过phonegap部分,但你的web应用程序仍然只是一个web应用程序,即一个网页(这是更明显的android,iOS)。


I've built and app on PhoneGap (Cordova) and run into plenty of difficulties along the way. Thus I was thinking my next build would be with jQuery Mobile.

I was wondering if anyone had experience with both and had a recommendation or preference?

解决方案

JQM just helps you build a web page/application that is optimized for mobile devices, however it is still just a web page. On iOS you can pin a web application to the home-screen which opens up a separate browser instance when clicked/tapped as well as provide some meta tags that can make your web application appear more like a native app (for example you can hide the status bar at the top of the screen and provide a splash screen). On android however (at least on ICS, don't know about Jelly bean), while you can pin web application to your home-screen it just acts as a shortcut and opens it up as another tab in your browser. I'm not sure what options you have for web apps on windows phones.

Phonegap just builds a native app wrapper with a webview (a browser instance) for your web application and gives you access to the devices API.

Basically the two are not mutually exclusive, you can build your web application using JQM and still wrap it up in phonegap (you'll probably still run into whatever difficulties you ran into before), or you can skip the phonegap part, but your web application will still be just a web application, i.e a web page (that is more apparent on android then iOS).

这篇关于PhoneGap或JqueryMobile?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆