doushi1960 2013-01-13 11:41
浏览 22
已采纳

使用PHP请求重新排序divs位置[关闭]

I just wanna ask you how is the order in system that will allow me to

first get data -> animated (remove old divs) -> 
and put new to old's place. 

Imagine a php request to database (maybe ajax), lets say online shop and user wanna order a products by price. When this happens my request will be to get first data from database and order it by size, then i wanna remove old divs (by default that i show on page) and repalce them with new ones with containing information. I think a little jquery help will be gr8 here.

Thanks!

  • 写回答

1条回答 默认 最新

  • dpde7365 2013-01-13 11:49
    关注

    You can read this perfect article about ajax in jquery: 5 Ways to Make Ajax Calls with jQuery

    • load(): Load a piece of html into a container DOM.
    • $.getJSON(): Load a JSON with GET method.
    • $.getScript(): Load a JavaScript.
    • $.get(): Use this if you want to make a GET call and play extensively with the response.
    • $.post(): Use this if you want to make a POST call and don’t want to load the response to some container DOM.
    • $.ajax(): Use this if you need to do something when XHR fails, or you need to specify ajax options (e.g. cache: true) on the fly.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭