I put it all here: http://jsfiddle.net/uJ3h7/
But I'll repost the mark-up here:
$(document).ready(function(){
$.getJSON("http://gdata.youtube.com/feeds/api/users/MisterAngelMarino/favorites?v=2&alt=jsonc&max-results=1",function(json){
$.each(json.data, function(i,video){
var source = video.id
$("#video").append('');
});
});
});
Any ideas what I borked?
以上就是Youtube API - Querying JSON for a video id loads empty embedded iframe 的详细内容,更多请关注web前端其它相关文章!