Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 运行.mb_YTPlayer()时未定义函数;_Jquery_Html_Twitter Bootstrap - Fatal编程技术网

Jquery 运行.mb_YTPlayer()时未定义函数;

Jquery 运行.mb_YTPlayer()时未定义函数;,jquery,html,twitter-bootstrap,Jquery,Html,Twitter Bootstrap,我正在尝试使用jquery.mb.YTPlayer创建一个完整的视频背景,但是我得到了 未捕获类型错误:未定义不是函数 这是我的密码: <head> <script type="text/javascript"> $(document).ready(function () { jQuery(".player").mb_YTPlayer(); }); </script> <

我正在尝试使用jquery.mb.YTPlayer创建一个完整的视频背景,但是我得到了

未捕获类型错误:未定义不是函数


这是我的密码:

<head>
    <script type="text/javascript">
        $(document).ready(function () {  
            jQuery(".player").mb_YTPlayer();   
        });
    </script>
</head>

<body id="page-top" data-spy="scroll" data-target=".navbar-custom">
    <a id="bgndVideo" class="player" data-property="{videoURL:'http://youtu.be/BsekcY04xvQ',containment:'body',autoPlay:true, mute:true, startAt:0, opacity:1}">
        My video
    </a>
</body>

$(文档).ready(函数(){
jQuery(“.player”).mb_YTPlayer();
});
我的视频


是什么导致了未定义的错误?我的代码是否格式错误?

这实际上与库的加载顺序有关