Today we will introduce $. get () in jQuery (). It also allows us to complete ajax requirements in website development with a very small amount of code. The parameters of the $. get () function are the same as the $. post () parameter described in how jquery implements ajax technology 2: $. post. The details are as follows:
Today we will introduce $. get () in jQuery (). It also allows us to complete ajax requirements in website development with a very small amount of code.
The parameters of the $. get () function are the same as the $. post () parameter described in how jquery implements ajax technology 2: $. post. The details are as follows:
$. Get (url, data, callback, type)
Url --- the URL of the page to be loaded.
Data --- Key/value parameter to be sent.
Callback --- callback function when loading is successful.
Type --- the returned content format is xml, html, script, json, text, and _ default.
The following is an example:
========================================================== ======================================
Ajax.html
$. Ajax applications