2

これは私の頭を台無しにしています、これはコードです:

$(document).ready(function(){ 
    $(".tour-popover").popover({html: true });
    $('#1-popover').popover('show');
    $('.next-popover').click(function(){
        cur_num = parseInt($(this).attr('id'), 10); 
        $('#'cur_num+'-popover').popover('destroy');                    
    });
});

メソッドを初めて使用しpopover()て表示するときは正常に動作しますが、破棄または非表示にしたい場合は動作せず、次のエラーがスローされます。Uncaught TypeError: Object [object Object] has no method 'popover'

これは、ファイルの呼び出し方法です。

<link rel="stylesheet" href="files/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="files/bootstrap/css/bootstrap-responsive.css"/>

<link rel="stylesheet" href="files/custom-colors.css"/>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<link rel="stylesheet" href="files/main.css"/>
<script type="text/javascript" src="files/main.js"></script>    
<script type="text/javascript" src="files/bootstrap/js/bootstrap.js"></script>      
<script type="text/javascript" src="files/bootstrap/file-upload/bootstrap-fileupload.min.js"></script>
4

0 に答える 0