Ajax and JSON explanations

Source: Internet
Author: User

The ResponseText property returns the HTTP response as a string.

The Responsexml property returns an HTTP response in XML form.

The Json.stringify function (JavaScript) converts a JavaScript Object notation (Json) object into a string.

The Json.parse function (JavaScript) converts a JavaScript Object notation (JSON) string to an object.

The Parsejson () function (jquery) is used to convert a well-formed JSON string to its corresponding JavaScript object.

The Eval function converts a string that essentially conforms to or approximates the JSON format to a JSON object.

(The jquery asynchronous request sets the type (typically this configuration property) to "JSON" or the $.getjson () method to get the server back, so it is not

The eval () method is required, because the result is already a JSON object, just call the object directly,

Parsing JSON basics with jquery----http://www.cnblogs.com/madyina/p/3448518.html

Ajax and JSON explanations

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.