Ajax Post Method instance (with loops)

Source: Internet
Author: User
The use of the loop is to the data before sending a reasonable processing, to solve the script language in the data processing additional requirements of the timeout phenomenon. In the knowledge of Ajax is not deep, if it is wrong or not in place, please advise.

The Post method in Ajax has three parameters, the first two parameters are required, and the third parameter depends on the requirements. The red part of the picture below, if your own code is UTF8 can not be used. Because Ajax itself defaults to the transfer value and itself is encoded with UTF8, if you are using GBK encoding, you need to transfer the code before the data transfer.

  

However, in the server processing language, the corresponding transcoding coordination is needed, such as



Related Article

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.