A simple example of the $.post () method in jquery original address: http://www.jb51.net/article/46464.htm font: [Increase Decrease] Type: Reprint Time:2014-02-04 I would like to comment this article is mainly about jquery in the $.post () method of simple examples are introduced, the need for friends can come to the reference, I hope to help you in jqery there is such a method, $.post () Here's a simple example: jquery.post (URL, [data], [callback], [type]): Use post to make asynchronous request parameters: URL (String): The URL address of the sending request. Data ( MAP): (optional) data to be sent to the server, expressed as a Key/value key-value pair. Callback (function): (optional) The callback function when loading succeeds (the method is called only if the return state of response is success). Type (String): (optional) The official description is: type of data to be sent. You should actually copy the code for the type of client request (Json,xml, etc.) 1.html page (index.html) as follows: <! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
A simple instance of the $.post () method in 1.jquery