簡體   English   中英

無法加載Bootstrap模式

[英]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

我的代碼:

<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.jsjquery.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/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM