Javascript 无法加载引导模式
我试图加载一个引导模式,但它在我的网站上不起作用。 当我试图在控制台上查看时,出现了以下错误 在Firefox中:Javascript 无法加载引导模式,javascript,jquery,twitter-bootstrap,Javascript,Jquery,Twitter Bootstrap,我试图加载一个引导模式,但它在我的网站上不起作用。 当我试图在控制台上查看时,出现了以下错误 在Firefox中: TypeError: e.modal(...).one is not a function bootstrap.js:6 镀铬: Uncaught TypeError: undefined is not a function bootstrap.js:6 我的代码: <a class="btn btn-default" href="#myModal10" role="
TypeError: e.modal(...).one is not a function bootstrap.js:6
镀铬:
Uncaught TypeError: undefined is not a function bootstrap.js:6
我的代码:
<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>
x
贡献者
这是一个贡献者会员。您将拥有365天的会员资格,您的组织可以全年发布物品,优惠券会员资格是免费的。(如果尚未收到代码,请与联系)
我认为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>
你能发布你的代码吗?在JSIDLE上运行良好,确保调用引导js是真实的谢谢。我认为jquery存在冲突问题。请现场查看:查看您的js引用顺序。我认为这是因为js文件中存在冲突。是的。可能是js冲突。我尝试使用jquery noConflict。但无法解决问题。我的现场是你能告诉我如何确切地解决这个问题。