使用jQuery Mobile的移动应用程序 [英] Mobile application using jQuery Mobile

查看:61
本文介绍了使用jQuery Mobile的移动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我正在使用jQuery Mobile创建一个移动应用程序..
请提出如何连接数据库以及检索记录和显示的方法.
我是新来的.

解决方案

我在jquery移动网站上看不到有关数据库访问的任何信息.您的第一个障碍是手机可以使用的数据库平台.当然,因为它是jQuery,所以我敢打赌,您可以对容纳DB的服务器进行AJAX调用,我敢打赌,这是人们通常在做的事情.要连接到数据库,您需要从客户端与服务器端进行交互.您需要为此使用jQuery Ajax.
在这里,看看:
http://api.jquery.com/jQuery.ajax/ [ http://api.jquery.com/category/ajax/ [ http://www.w3schools.com/jquery/jquery_ref_ajax.asp [ 解决方案

I see nothing on the jquery mobile site about DB access. Your first hurdle is a DB platform that your phone can use. Of course, as it''s jQuery, I bet you can make AJAX calls to a server that houses your DB, I bet that''s what people are generally doing.


Since you want to connect to database, you need to interact server side from client side. You need to use jQuery Ajax for that.
Here, have a look:
http://api.jquery.com/jQuery.ajax/[^]
http://api.jquery.com/category/ajax/[^]
http://www.w3schools.com/jquery/jquery_ref_ajax.asp[^]

Try!


这篇关于使用jQuery Mobile的移动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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