6

oembed を使用して YouTube への JSONp 呼び出しを行っていますが、応答時に firebug が「無効なラベル」エラーを返します

これが私のコードです

site = "www.youtube.com";
url = "http://www.youtube.com/watch?v=slORb622ZI8";

$.getJSON("http://"+site+"/oembed?callback=?",{"format":"json","url":url},function(data){
    alert("hello:\n"+data);
    alert(data.provider_url);
});

oembed jsonp リクエストで同様の問題に遭遇した人はいますか?

4

2 に答える 2