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/
精彩评论