切换数据库jQuery的结果 [英] Toggle results from database jQuery

查看:79
本文介绍了切换数据库jQuery的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对jQuery和JS非常陌生.我的主页上有一组链接/按钮,我需要从数据库(具有功能性)中获取相应的结果,例如某个类别下的对象集.我需要对结果进行切换.我能够为静态数据产生切换效果,但是我无法对从数据库中检索到的数据执行相同的操作.有人可以帮我吗?

I am very new to jQuery and JS. I have a set of links/buttons on my home page and I need to get the corresponding results from a database (which is functional) like the set of objects under a certain category. I need to have a toggle effect for the results. I am able to produce toggle effect for static data but I am unable to do the same with data retrieved from a database. Can someone please help me out .?

推荐答案

您将不得不使用Ajax从服务器获取数据.

You will have to use Ajax to get the data from the server.

在这里看看. http://www.php4every1.com/tutorials/jquery-ajax-tutorial/

和此处 http://www .devirtuoso.com/2009/07/beginners-guide-to-using-ajax-with-jquery/

这篇关于切换数据库jQuery的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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