尝试使用bootstrap我收到一个用标题
写的错误我的代码
function closeDialog () {
$('#windowTitleDialog').modal('hide');
};
这些是包含的文件
<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>
任何建议??
答案 0 :(得分:8)
我遇到了这个问题。 毕竟解决方案很简单:
事实证明,我已经将jQuery包含了两次。
删除多余的jQuery后,模态开始按预期工作。所以
$('#theModal').modal('hide')
实际上关闭了对话框。