哪个框架是最好的开发使用数据库连接的移动应用程序? [英] Which framework is the best to develop a mobile application using database connection?

查看:184
本文介绍了哪个框架是最好的开发使用数据库连接的移动应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用PHP5开发了一个网站。现在,我想总结一个跨平台移动应用程序中我的网站的主要功能。

I developed a website using PHP5. Now, I want to sum up the main features of my website in a cross-platform mobile application.

我做了一些关于框架的研究,可以做到这一点。我发现'jQuery Mobile','SenchaTouch'和'Cordova'是最受欢迎的。但我想开发一个应用程序,需要有一个连接到数据库,并且是可移植的iOS和Android(至少)。

I did some research about frameworks which can do this. I found 'jQuery Mobile', 'SenchaTouch' and 'Cordova' which are the most popular. But I want to develop an application which needs to have a connection to a database and which is portable on iOS and Android (at least).

我试过'jQuery Mobile'但应用程序需要在Web浏览器中打开以显示应用程序(如一个简单的网站)。例如,我想打开我的应用程序像一个当前的电话应用程序,而不通过Web浏览器使用数据库连接(具有相同的行为比当前网站和显示MySQL请求的内容,但没有Web浏览器)。

I tried 'jQuery Mobile' but the application needs to be open in a web browser to display the application (like a simple website). For example, I would like to open my application like a current phone application without passing by a web browser using a database connection (to have the same behaviour than a current web site and display the content of MySQL request but without web browser).

有可能使用jQuery Mobile或另一个吗?还是我必须通过网络浏览器?

Is it possible with jQuery Mobile or another one? Or do I have to pass by a web browser? Can anyone help me, please?

推荐答案

目前有3种不同类型的移动应用程序:本机应用程序,混合应用程序,和网络应用程序。本机应用程序是用Java(对于Android)或Objective-C(对于iOS)编写的应用程序。本机应用程序可以完全访问手机上的低级硬件功能,并可以从应用商店下载。 Web应用程序是使用特殊JavaScript工具包(如jQuery Mobile和Sencha Touch)和自定义CSS的网站,使网站看起来像本机应用程序一样的外观和功能。但是,只能通过浏览器访问网络应用程序 - 您可以将手机上的主页屏幕上的书签标记为更容易访问,但仍然无法从应用商店下载并且无法访问到手机上的硬件功能。混合应用是这两者之间的交叉。混合应用程序基本上是在本地代码中包装的网站。这允许您创建一个原生应用程序,其核心只是一个网站,但是,包装允许您访问低级硬件像本机应用程序,并允许您发布应用程序到应用商店。混合应用程序的另一个主要优点是,您只需要了解HTML / JavaScript即可创建将在所有移动操作系统上运行的多平台应用程序。这是Cordova做的。

There are 3 different types of mobile applications that exist today: native apps, hybrid apps, and web apps. A native app is one that is written in Java (for Android) or Objective-C (for iOS). Native apps have full access to low level hardware features on the phone and can be downloaded from app stores. Web apps are websites that use special JavaScript toolkits (like jQuery Mobile and Sencha Touch) and custom CSS to make websites appear to look and function like native apps. However, Web Apps can only be accessed through a browser - while you can "bookmark" websites to the Home screen on your phone to make it easier to access, they still can't be downloaded from an app store and don't have access to the hardware functions on the phone. Hybrid apps are a cross between these two. Hybrid apps are basically websites that are "wrapped" in native code. This allows you to create a native app that at its core is just a website, however, the wrapping allows you to access low level hardware like a native app and allows you to publish the app to app stores. Another major benefit of hybrid apps is that you only need to know HTML/JavaScript to create a multi-platform app that will run on all of the mobile operating systems. This is what Cordova does.

这听起来像你想做的是创建一个混合应用程序使用jQuery移动(或Dojo移动,或Sencha触摸,或数百其他JavaScript工具包之一这样你可以利用你的网站开发技能和建立一个连接到你的数据库的网站。但是,当使用Cordova最终编译您的HTML / CSS移动网站时,它会吐出iOS,Android和其他平台的原生应用程序,然后发布到应用商店。当用户从应用商店下载您的应用并点击启动图标时,他们会看到您的网站,但他们不会看到浏览器工具栏或类似的东西 - 大多数用户不知道他们正在看一个HTML / CSS 网站。这听起来像你的目标,有一个应用程序的功能像一个网站,但不会像一个网站。

It sounds like what you want to do is create a hybrid application using jQuery mobile (or Dojo Mobile, or Sencha Touch, or one of the hundreds of other JavaScript toolkits out there.) This way you can utilize your web development skills and build a website that connects to your database. However, when end up "compiling" your HTML/CSS "mobile website" using Cordova, it will spit out native-looking apps for iOS, Android, and other platforms that you can then publish to the app store. When a user downloads your app from the app store and clicks on the launch icon, they will see your website but they will not see a browser toolbar or anything like that - most users will have no idea that they are looking at an HTML/CSS "website." This sounds like your goal, to have an app that functions like a website but will not look like a website.

这篇关于哪个框架是最好的开发使用数据库连接的移动应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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