【JS】Intermediate8:jQuery:AJAX

1.$.ajax is the main method, allowing you to manually construct your AJAX request

2.eg: gets some data from a server

a function to be called when the data is retrieved, named the success callback.

control over how data is sent

3.$.get  eg:

3.$.post  eg:

The second argument is the data to be sent - it can be almost anything except a function: jQuery will figure out how to send it for you

原文地址:https://www.cnblogs.com/yzhen/p/3664494.html