无法加载引导模式
Unable to Load Bootstrap Modal
我试图加载一个引导模式,但它不是在我的网站工作。当我尝试在控制台上查看时,出现了以下错误:
Firefox:TypeError: e.modal(...).one is not a function bootstrap.js:6
在Chrome: Uncaught TypeError: undefined is not a function bootstrap.js:6
My Code:
<a class="btn btn-default" href="#myModal10" role="button" data-toggle="modal">More Info</a>
<div id="myModal10" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog"><div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h4 class="modal-title">Contributors</h4>
</div>
<div class="modal-body">
<p>This is a Contributors Membership. You will have a 365 day Membership where your organization can post listings the whole year with coupon membership is free. (Please Contact for Code if you haven't already received it)</p>
</div>
</div>
</div></div>
我认为js与jquery.simplemodal.1.4.3.min.js
的冲突包括与jquery-migrate.min.js
的冲突,但不确定…
尝试在调用jquery-migrate.min.js
和jquery.simplemodal.1.4.3.min.js
后添加bootstrap.js
<script type='text/javascript' src='http://www.helpinghawaiinei.org/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
<script type='text/javascript' src='http://www.helpinghawaiinei.org/wp-content/plugins/ajax-event-calendar/js/jquery.simplemodal.1.4.3.min.js?ver=1.4.3'></script>
<script src="http://www.helpinghawaiinei.org/wp-content/themes/AT/framework/js/bootstrap.js" type="text/javascript"></script>
http://jsfiddle.net/g9r8r/相关文章:
- 如何删除视频's缩略图时's加载在JW Player's闪光模式
- Yii2从点击链接开始加载模式
- Bootstrap在页面加载缓慢时会立即显示隐藏的模式对话框
- 无法加载Ace.js编辑器模式和主题(命名空间项目&AMD require.js&grunt
- 将页面片段加载到Twitter引导模式中
- d3转换从页面加载开始,而不是从模式弹出加载开始
- 动态加载引导模式主体
- 在页面加载时删除CSS模式Flash
- Bootstrap JS模式加载,但不可编辑
- PHP根据用户选择的项目以模式加载数据
- 使用Geolocation以引导模式加载地图,标记不会居中
- 引导模式加载事件
- 在远程片段上引导模式“加载”事件
- 使用 jQuery 检测以引导模式加载的图像
- Bootstrap模式加载远程内容,生成2个请求
- 单击关闭模式加载页面的按钮
- 更快地进行引导模式加载
- 以引导模式加载iframe
- Javascript模块模式:加载时初始化两个对象
- 在Internet Explorer中以Quirks模式加载页面 - 文档类型已注释掉