Bootstrap模态Uncaught TypeError:Object [object Object]没有方法'modal'

Yeb*_*ach 4 modal-dialog twitter-bootstrap

尝试使用bootstrap我收到了标题中写的错误

我的代码

function closeDialog () {
    $('#windowTitleDialog').modal('hide'); 
};
Run Code Online (Sandbox Code Playgroud)

这些是包含的文件

  <link href="http://static.scripting.com/github/bootstrap2/css/bootstrap.css" rel="stylesheet">
  <script src="http://static.scripting.com/github/bootstrap2/js/jquery.js"></script><style type="text/css"></style>
  <script src="{{=URL(request.application,'static','js/bootstrap-transition.js')}}"></script>
  <script src="http://static.scripting.com/github/bootstrap2/js/bootstrap.js"></script>
  <script type="text/javascript"src="{{=URL(request.application,'static','js/modal.js')}}"></script>
Run Code Online (Sandbox Code Playgroud)

有什么建议??

Cod*_*fel 8

我有这个确切的问题.毕竟解决方案非常简单:

原来,我已经两次包含jQuery了.

删除多余的jQuery后,模态开始按预期工作.所以

$('#theModal').modal('hide')
Run Code Online (Sandbox Code Playgroud)

实际上关闭了对话框.