Solution to the problem of $.getjson under IE

Source: Internet
Author: User
Tags json

 ie under the $.getjson problem is often the case, the following for you to introduce the specific how to solve the needs of friends can refer to the following

Prerequisite: Need to import related JS file jquery.js    $.post (url,data,success (data, Textstatus, JQXHR), dataType)     URL: required. Specify which URL to send the request to.     data: Optional. The mapping or string value. Specify the data to be sent to the server along with the request.     Success (data, Textstatus, JQXHR): Optional. The callback function to execute when the request succeeds.     DataType: Perform intelligent judgments (XML, JSON, script, or HTML) by default.     $.getjson (url,data,success (data, Textstatus, XHR)     URL: required. Specify which URL to send the request to.     data: Optional. Specify the data to be sent to the server along with the request.     Success (DATA,STATUS,XHR):    Optional. A function that is required to run when a request succeeds.     Additional parameters:    response-contains result data from the request   status-contains the requested status   XHR-Contains XMLHttpRequest object   &NB Sp Extensions written as:    code as follows: $.ajax ({    type: ' POST ' or ' get ',    url:url,    data:data,  & nbsp success:callback,    datatype:json   });    DataType have these types: XML, JSON, script, or html    Note:    using the $.getjson method, if there is a Chinese character in the URL to be escaped first (not escaped IE8 under $_get[' V ') will not get the value, other browsers do not have this problem)     eg:     VARurl = "/api.php?op=product&v=" +encodeuricomponent (' study hard ');   

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.