Jquery 打印从“获取的数据”;ajax";在jwplayer javascript中

Jquery 打印从“获取的数据”;ajax";在jwplayer javascript中,jquery,Jquery,我想在jwplayer javascript中打印从“ajax”获得的数据。帮帮我,我是javascript新手。请帮帮我!对不起,我的英语很差 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="/a/jwplayer.js" type="text/javascript"

我想在jwplayer javascript中打印从“ajax”获得的数据。帮帮我,我是javascript新手。请帮帮我!对不起,我的英语很差

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="/a/jwplayer.js" type="text/javascript"></script>
<script type="text/javascript">jwplayer.key="key";</script>
<div id="my-video">Loading ...</div>
<script>
    function loadPlayer(link){  
        var data = 'zing=' + link;
        $.ajax({
            type: "POST",
            url: "http://localhost/a/zing.php",
            data: data,
            success: function (getlink){jwplayer("my-video").setup({
                getlink, 
                image: "http://content.jwplatform.com/thumbs/Wf8BfcSt-640.jpg",
                width: "580",
                height: "370",
                primary: "html5",
                advertising: { 
                    client: "vast",
                    schedule: {"myAds":{"offset":"15","tag":"http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,test"}}
                }
            });}  
        });    
    }
</script>
<script>loadPlayer('http://tv.zing.vn/video/Date-a-Live-II-Tap-10-END/IWZA7BIW.html');</script>

jwplayer.key=“key”;
加载。。。
函数loadPlayer(链接){
变量数据='zing='+链接;
$.ajax({
类型:“POST”,
url:“http://localhost/a/zing.php",
数据:数据,
成功:函数(getlink){jwplayer(“我的视频”)。设置({
getlink,
图像:“http://content.jwplatform.com/thumbs/Wf8BfcSt-640.jpg",
宽度:“580”,
高度:“370”,
主要:“html5”,
广告:{
客户:“浩瀚”,
附表:{“myAds”:{“offset”:“15”,“tag”:”http://www.adotube.com/php/services/player/OMLService.php?avpid=oRYYzvQ&platform_version=vast20&ad_type=linear&groupbypass=1&HTTP_REFERER=http://www.longtailvideo.com&video_identifier=longtailvideo.com,测试“}
}
});}  
});    
}
loadPlayer('http://tv.zing.vn/video/Date-a-Live-II-Tap-10-END/IWZA7BIW.html');

看起来您的问题出在传递给
jwPlayer的
init
的对象中。设置

success: function (getlink){
  jwplayer("my-video").setup({
    getlink, // This is wrong. There must be some name of the parameter.
也许,这就是你要找的

success: function (getlink){
  jwplayer("my-video").setup({
    url: getlink, // Use the name of the parameter here?

是的。好的,
getlink
包含什么?函数(getlink){//here@Ho你不明白。
getlink
的内容是什么?对不起:v[{file::“720p”},{file::“480p”},{file::“360p”,“default:“true”}]那是个错误:vjwplayer 7不同。谢谢你的帮助