0

IDと日付は取得できますが、tumblr json apiから写真自体は取得できません:(

http://jsfiddle.net/82wNq/11/

$.getJSON("http://fuckyeahgirlswithvinylrecords.tumblr.com/api/read/json?callback=?", function (data) {
    $.each(data.posts, function (index, item) {
        $("<div>").html(item.id).appendTo("#content");
        $("<div>").html(item.date).appendTo("#content");
        $("<img>").attr("src", item.photo-url-100).appendTo("#content");
    });
});
4

3 に答える 3

1

次のように呼び出します。

$.getJSON("http://fuckyeahgirlswithvinylrecords.tumblr.com/api/read/json?callback=?", function (data) {
    $.each(data.posts, function (index, item) {
        $("<div>").html(item.id).appendTo("#content");
        $("<div>").html(item.date).appendTo("#content");
        $("<img>").attr("src", item['photo-url-100']).appendTo("#content");
    });
});
于 2013-11-06T17:05:35.550 に答える