我正在尝试使用 Google 电子表格数据 API 获取 JSON 字符串。我试图从简单的开始,在成功加载 JSON 字符串后弹出一个警告框。
$(function(){
var json_uri = "https://spreadsheets.google.com/feeds/list/0AvC4NUSdTIgddFJnUFRkcnI0QkJDLVg2eklZd0FZVVE/od6/public/values?alt=json";
$.ajax({
type: "GET",
url: json_uri,
success: function(data){
alert("success");
}
});
});
但我从来没有看到警报框。发生了什么?我是 JSON 和电子表格 API 的新手,所以希望这只是我忽略的一些简单的事情。
Google 的示例页面:http ://code.google.com/apis/gdata/samples/spreadsheet_sample.html
我的 jsbin 示例页面:http: //jsbin.com/otuxiv/11