Summarizes the use of Ajax
all sample codes
https://github.com/Luichuns/test_code
1. Asynchronous sending
1. Native ajax
2.
jQuery
3. Fetch 4. Axios
2. Cross-domain sending
1. HTTP request message response message
2. Installation of nodejs
3. Use of express framework, purpose to start the server
4. Get request to obtain data
5. Ajax get request URL transmission parameters
6. Ajax post request and parameter settings
7 Set request headers and custom request headers in
.ajax 8. JSON response in ajax 9.
Nodemon automated use
10. Solve the problem of IE caching in ajax (manually add timestamp)
11. Ajax network timeout and network exception
12. Ajax cancel acquisition Data
13. Ajax cancel repeated sending requests, reduce server pressure
13. How to use ajax to send requests in
jQuery 14. How to use get, post, and general ajax method requests in the axios framework.
15. Use fetch function to send ajax
16. Use of native jsonp