A simple example of the $.post () method in 1.jquery

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.