我正在使用Tumblr帖子中的2个元素(标题和正文)。我也在使用Ajax。控制台没有显示任何错误,但我也没有在屏幕上看到任何结果。
$.ajax({
url:"https://api.tumblr.com/v2/blog/adeccomexico.tumblr.com/posts/text?api_key={my-key}&id=129289921872",
dataType: 'jsonp',
success: function(posts){
$("#title").html(posts.response.posts.title);
$('#name').html(posts.response.posts.body);
}
});
当我在网址中使用'info'参数时,我没有任何问题。