我正在使用 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 请求时遇到过类似的问题?