我使用.getJSON()
MediaWiki API 从维基百科中提取信息。我不知道如何处理我得到的数据。例如,如何显示文本内容?我试过.text()
在下面使用,但我有点无能为力。
var title="jQuery";
$.getJSON("http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&titles="+title+"&format=json&callback=?",
function(data){
data.text();
});
});