var url = https://graph.facebook.com/?ids=http://www.stackoverflow.com ;
$.getJSON(url, function(resp) {
$("p").html( comments = + resp.comments);
});
这将在我的 comments = 未定义的
我从电话中得到的返回字符串是:
{
"http://www.thinlinebetween.com/tuesday-quote-of-the-day-jean-ingelow/": {
"id": "http://www.thinlinebetween.com/tuesday-quote-of-the-day-jean-ingelow/",
"shares": 2,
"comments": 1
}
}
http://www.thinline between.com/tuesday-quote-of-day-jean-ingelow/.comments 来获得价值?返回的json不容易解析。谢谢!