Home >Web Front-end >JS Tutorial >Solution to the problem of $.getJSON under IE_javascript skills
Prerequisite: The relevant js file jquery.js needs to be imported
$.post(url,data,success(data, textStatus, jqXHR),dataType)
url: required. Specifies the URL to which the request should be sent.
data: optional. Map or string value. Specifies the data to be sent to the server with the request.
success(data, textStatus, jqXHR): Optional. The callback function executed when the request is successful.
dataType: Perform intelligent judgment by default (xml, json, script or html).
$.getJSON(url,data,success(data, textStatus, xhr))
url: required. Specifies the URL to which the request will be sent.
data: optional. Specifies the data to be sent to the server with the request.
success(data,status,xhr):
Optional. Specifies a function to run when the request succeeds.
Extra parameters:
response - contains the result data from the request
status - contains the status of the request
xhr - contains the XMLHttpRequest object
extension is written as :