jquery-获取ajax响应并存储在变量中

jquery-获取ajax响应并存储在变量中,jquery,ajax,jsonp,Jquery,Ajax,Jsonp,我想将从接收到的数据存储到变量中并访问info.h。。我试过这个 $.ajax({ async: false, type: "GET", url: "http://www.youtube-mp3.org/a/itemInfo/?video_id=Vd85aPZ-QAE&ac=www&t=grp", dataType: "json", success : function(info)

我想将从接收到的数据存储到变量中并访问info.h。。我试过这个

$.ajax({
          async: false,
          type: "GET",
          url: "http://www.youtube-mp3.org/a/itemInfo/?video_id=Vd85aPZ-QAE&ac=www&t=grp",
          dataType: "json",
          success : function(info) {
                        xml = info.h;
                alert(xml); // WORKS
                    }
        });
但是没有成功

infoRehashCallback=function(){4==h.readyState&&("$$$ERROR$$$"==h.responseText?pushItemError():500==h.status?(error_count+=1,4<error_count&&pushItemMaintenance()):(eval(h.responseText),checkInfo()))};infoRehash=function(){var a=new Date;h=createRequestObject();a="http://www.youtube-mp3.org/a/itemInfo/?video_id="+video_id+"&ac=www&t=grp&r="+a.getTime();h.onreadystatechange=infoRehashCallback;h.open("GET",a,!0);hs(h);h.send(null)};
startInfoRehash=function(a){video_id=a;infoRehash();interval=window.setInterval("infoRehash()",1E3*interval_diff)};

infoRehashCallback=function(){4==h.readyState&($$$ERROR$$$”==h.responseText?pushItemError():500==h.status?(ERROR\u count+=1,4生成如下函数:

$.ajax({
          async: false,
          type: "GET",
          url: "http://www.youtube-mp3.org/a/itemInfo/?video_id=Vd85aPZ-QAE&ac=www&t=grp",
          dataType: "json",
          success : function(info) {
                        ShowAlert(info.h);

                    }
        });

function ShowAlert(a)
{
   alert(a);
// do whatever want to with the result
}

我得到了以下无效的响应:

info = {"status" : "serving", "h" : "-"};
应该是:

{"status" : "serving", "h" : "-"}

为什么要将其存储在变量中?仍然没有警报生成它是否进入成功功能?json响应无效..但我需要解决它..这是响应信息={“title”:“Hello-Lionel Richie”,“image”:“length”:“4”,“status”:“service”,“progress_speed”:“progress”:“ads”:“pf”:“h”:“f54ed003ec1b3b95be03a68dbcc5cba6”,“px:”);请您帮助我..有没有办法删除“info=”部分以使json有效?像这样使用replace:info.replace(“info=”,”);不,它会抛出解析错误,无法处理响应。我们可以从大括号中解析它并保留“info=”?