$阿贾克斯VS $。员额VS $不用彷徨VS $ .load [英] $.ajax vs $.post vs $.get vs $.load

查看:123
本文介绍了$阿贾克斯VS $。员额VS $不用彷徨VS $ .load的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
  <一href="http://stackoverflow.com/questions/3870086/difference-between-ajax-and-get-and-load">Difference之间$。阿贾克斯()和$。获得()和$ .load()

我试图做到的是要改变在页面中的数据而无需刷新页面。一路过关斩将的jQuery的文档,我知道我可以使用下面的方法。但我不明白,使用哪种方法。他们看起来都一样给我。

What I'm trying to accomplish is to change the data in the page without refreshing the page. By going through the documentation of jQuery I understand that I can use below methods. But I don't understand which method to use. They all look the same to me.

什么是间$阿贾克斯的区别VS $。员额VS $不用彷徨VS $ .load?

我阅读文档,但我无法得到上述方法的区别的正确理解。我是新来的jQuery。如果有人能请解释的差异,这将是一个很大的帮助。

I read the documentation but I couldn't get the proper understanding of the difference of the above methods. I'm new to jQuery. If someone can please explain the difference, that would be a great help.

感谢

推荐答案

他们做什么,他们说,他们做的。

They do what they say they do.

  • $。AJAX是用来发送XMLHtt prequests功能
  • $,帖子是一个POST包装$就
  • $,得到的是一个GET包装$就
  • $,负载是同一个概念,但可以让你轻松地将内容加载到所选元素。

这篇关于$阿贾克斯VS $。员额VS $不用彷徨VS $ .load的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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