PHP delivers a simple example of JSON data based on jquery's Ajax technology, Jqueryjson
In this paper, a simple implementation method of PHP-based AJAX technology is presented. Share to everyone for your reference, as follows:
HTML page:
A
Document directory
Syntax
Syntax
Syntax
Syntax
Jquery Ajax example
Jquery is indeed a very lightweight JS framework that can help us quickly develop JS applications and change the habit of writing JavaScript code to a certain extent.
Let'
Document directory
Index in the element: $ ("# More-Info "). index ("H3") New. the has () method (has document, commit) is equivalent to the has () filter in the selector. It obtains a jquery set and returns elements containing the specified
$. Get (), $. Post (), $. Ajax (), $. getjson ()
1, $. Get (URL, [data], [callback])
Note: The URL is the request address, the data is the list of request data, and the callback is the callback function after the request is successful. This
$. Get (), $. post (), $. ajax (), $. getJSON () in Jquery, and jquery. post
This article describes $. get (), $. post (), $. ajax (), $. the usage of getJSON () is summarized in detail. For more information, see getJSON.
Details about Jquery Ajax
$. Get (), $. post (), $. ajax (), $. getJSON () in Jquery, and jquery. post
Details about Jquery Ajax functions:$. Get (), $. post (), $. ajax (), $. getJSON ()1, $. get (url, [data], [callback])Note: The url is the request address, the data is the
Overview
Jquery is another excellent Javascript. framework after prototype. Its purpose is to write less code and do more things. It is lightweightJS Library (only 21 K after compression), which is not suitable for other JS libraries. It is
Jquery. Ajax (options)
Parameters:
Options
Return Value:
XMLHttpRequest
Use http to request a page.
This is jquery's low-level Ajax implementation. For more information about advanced abstraction, see $. Set and $. Post. These methods are
This article is about $. get (), $. post (), $. ajax (), $. the usage of getJSON () is summarized in detail. If you need it, you can refer to it for help.
Details about Jquery Ajax functions:$. Get (), $. post (), $. ajax (), $. getJSON ()
1, $.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.