jquery to implement Ajax questions to ask?
I used the jquery load method together, as if there was a $.ajax method, what's the difference between the two?
Share to:
------Solution--------------------
The Load method I remember associating with an object.
After the first div1.load (), the server-side results are automatically loaded into the div block (whatever the server returns, forcing the load into Div1).
$.ajax, the above mechanism is not set. The data returned by the server can be processed at random after it is received.
------Solution--------------------
References:
I used the jquery load method together, as if there was a $.ajax method, what's the difference between the two?
Simply put: Load cannot process the returned data, and $.ajax can handle the re-display first.
------Solution--------------------
Load allows you to use Div as an iframe, $.ajax is to communicate with the daemon and return the result