Category: Shorthand Methods

These methods perform the more common types of Ajax requests in less code.

jQuery.get()
Load data from the server using a HTTP GET request.

jQuery.getJSON()
Load JSON-encoded data from the server using a GET HTTP request.

jQuery.getScript()
Load a JavaScript file from the server using a GET HTTP request, then execute it.

jQuery.post()
Load data from the server using a HTTP POST request.

.load()
Load data from the server and place the returned HTML into the matched elements.

Published 73 original articles · praised 189 · 10,000+ views

Guess you like

Origin blog.csdn.net/blog_programb/article/details/105570066