发布时间:2022-08-09 文章分类:编程知识 投稿人:赵颖 字号: 默认 | | 超大 打印

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