开发者

which one is powerful .load or .ajax or .post jquery ....? which one is recomended to use [closed]

开发者 https://www.devze.com 2023-03-03 08:48 出处:网络
开发者_高级运维 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely s
开发者_高级运维 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

which one is powerful .load or .ajax or .post jquery ....? which one is recomended to use


which one is powerful .load or .ajax or .post jquery ....?

Err. Either .ajax for it's flexibility or .load for doing more stuff.

"Power" is a worthless measure though.

which one is recomended to use

That one that does the job you need it to do. If one size fit all then there would only be one method.


$.load does technically do the same thing as $.ajax or $.post (but in actual fact, it does a $.get instead of posting data.

$.load performs a get on a script and returns the responseText from jQuery.com

This method is the simplest way to fetch data from the server. It is roughly equivalent to $.get(url, data, success)

Check out http://api.jquery.com/category/ajax/

0

精彩评论

暂无评论...
验证码 换一张
取 消