你必須包含比bootstrap.js更早的jQuery.js!
並且不要使用腳本的簡化形式的html。 (如<script scr=""/>
)已關閉它像<script scr=""></script>
)
<!-- JQuery -->
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js'></script>
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js'></script>
<link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<!-- BootStrap Link -->
<link rel="stylesheet" type="text/css" href="/linker/styles/vendor/bootstrap.css">
<script type="text/javascript" src="/linker/js/vendor/bootstrap.js"></script>
你打電話$('#creative_attachment_popup').modal('show');
在此之後,文件已經準備好?
$(function() {
$('#creative_attachment_popup').modal('show');
});
我使用'bootstrap.js',據我瞭解包含所有的插件。 – callmekatootie 2013-04-27 16:54:17