I got a question, jQuery.load or jQuery.ajax to load data of a database -
i wonder 1 perform better.
thanks.
well, aren't alternatives... have different meanings, uses , purposes.
$.ajax
all-purpose jquery ajax function. other ajax functions use it, including .load
. if want other load resource using ajax, have write code yourself.
.load
uses $.ajax
internally resource, loads resource document, using selection on load
called.
if want latter, use load
. if want else, use $.ajax
or 1 of other jquery ajax functions.
Comments
Post a Comment