简体   繁体   English

Phone Gap 是否能够将 php web 应用程序转换为 iphone/android 应用程序?

[英]is Phone Gap capable of converting a php web app into an iphone/android app?

Does anyone use PhoneGap?有人用PhoneGap吗?

I have a php app which uses ajax to receive json data.我有一个 php 应用程序,它使用 ajax 来接收 json 数据。 This technology called PhoneGap http://www.phonegap.com/ , is it able to convert my php app into an iphone/android app?这项名为 PhoneGap http://www.phonegap.com/的技术是否能够将我的 php 应用程序转换为 iphone/android 应用程序?

I know that if it is simply a javascript / html / css app that does not require server side technologies Phone Gap is capable.我知道,如果它只是一个不需要服务器端技术的 javascript / html / css 应用程序,Phone Gap 是有能力的。

However I definitely require the internet access and ajax connection to online web services.但是我绝对需要互联网访问和 ajax 连接到在线 web 服务。

Does anyone use PhoneGap?有人用PhoneGap吗?

Yes.是的。

is it able to convert my php app into an iphone/android app?是否能够将我的 php 应用程序转换为 iphone/android 应用程序?

PhoneGap does not "convert" anything. PhoneGap 不会“转换”任何东西。 You can convert your "php app into an iphone/android app", and PhoneGap might be part of your solution.可以将“php 应用程序转换为 iphone/android 应用程序”,PhoneGap 可能是您解决方案的一部分。

You would start by getting rid of all the "php" -- if your "app" can run purely in a browser using local storage, it will almost assuredly work with PhoneGap.您将从摆脱所有“php”开始——如果您的“应用程序”可以纯粹在使用本地存储的浏览器中运行,那么它几乎可以肯定地与 PhoneGap 一起使用。 PhoneGap also supplies some PhoneGap-specific JavaScript APIs, which you may or may not need. PhoneGap 还提供了一些 PhoneGap 特定的 JavaScript API,您可能需要也可能不需要。

However I definitely require the internet access and ajax connection to online web services.但是我绝对需要互联网访问和 ajax 连接到在线 web 服务。

PhoneGap neither helps nor hurts here. PhoneGap 在这里既没有帮助也没有伤害。 PhoneGap wraps around the Android WebView widget, which is itself based on WebKit, the same rendering engine used by Chrome, Safari, etc. If, after you get rid of your "php", your "app" works in Safari and Chome, it should work as "an iphone/android app" with PhoneGap, with some adjustment to your HTML/CSS/JS to deal with smaller screen sizes, touchscreens, etc. PhoneGap wraps around the Android WebView widget, which is itself based on WebKit, the same rendering engine used by Chrome, Safari, etc. If, after you get rid of your "php", your "app" works in Safari and Chome, it应该与 PhoneGap 一起作为“iphone/android 应用程序”工作,对您的 HTML/CSS/JS 进行一些调整以处理较小的屏幕尺寸、触摸屏等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM