jQuery.getJSON() – jQuery API

jQuery.getJSON() – jQuery API

Example: Load the JSON data from test.js, passing along additional data, and access a name from the returned JSON data.

$.getJSON("test.js", { name: "John", time: "2pm" }, function(json) {
    alert("JSON Data: " + json.users[3].name);
    });
原文地址:https://www.cnblogs.com/lexus/p/2584340.html