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);
  });

发表回复