프로그램&DB/AJAX
jQuery AJAX $.getJSON() Method
Josep.H.S
2011. 8. 23. 14:12
jQuery AJAX getJSON() Method
ExampleGet JSON data using an AJAX request, and output the result:
Try it yourself » |
Definition and Usage
The getJSON() method is used to get JSON data using an AJAX HTTP GET request.
Syntax
$(selector).getJSON(url,data,success(data,status,xhr)) |
Parameter | Description |
---|---|
url | Required. Specifies the url to send the request to |
data | Optional. Specifies data to be sent to the server |
success(data,status,xhr) | Optional. Specifies the function to run if the request
succeeds Additional parameters:
|
[출처] http://www.w3schools.com