jquery uses the Getjson method to get a complete sample of JSON data _jquery

Source: Internet
Author: User

This example describes jquery using the Getjson method to get JSON data. Share to everyone for your reference, specific as follows:

Demo.js:

[
  {"
    name": "WU", "
    Sex": "Male",
    "email": "demo1@123.com"
  },
  {
    "name": "Wuzhong",
    "sex": "Male",
    "email": "demo2@123.com"
  },
  {
    "name": "How to open",
    "sex": "female",
    "email": "demo3@123.com"
  }
]

Demo.html:

 

The effect chart is as follows:

Here the JSON suffix name is changed to JS, and the WEB container can be read normally.

PS: Here again for you to recommend a few JSON online tools, I believe that you can use in future development:

Online JSON code inspection, inspection, landscaping, formatting tools:
Http://tools.jb51.net/code/json

JSON Online formatting tool:
Http://tools.jb51.net/code/jsonformat

Online Xml/json Mutual Conversion tool:
Http://tools.jb51.net/code/xmljson

JSON code online Format/beautify/compress/edit/Convert tools:
Http://tools.jb51.net/code/jsoncodeformat

C Language Style/html/css/json code formatting landscaping Tools:
Http://tools.jb51.net/code/ccode_html_css_json

More interested readers of jquery related content can view the site topics: "jquery operation JSON data tips Summary", "jquery Extension Tips Summary", "jquery common Plug-ins and Usage summary", "jquery drag and drop effects and tips summary", "jquery Table" ( Table) Summary of operational techniques, "Summary of Ajax usage in jquery", "jquery common Classic Effects Summary", "jquery animation and special effects usage Summary" and "jquery Selector usage Summary"

I hope this article will help you with your jquery programming.

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.