【问题标题】:bootstrap.min.js:6 Uncaught TypeError: n is not a constructor returning when I click on the dropdown buttonbootstrap.min.js:6 Uncaught TypeError: n is not a constructor return when I click the dropdown button
【发布时间】:2020-07-11 12:49:08
【问题描述】:

我的页面中有多个下拉菜单。位于导航内部工作正常,但页面内部不起作用

位于导航内

页面内部

有什么问题? 谢谢。

【问题讨论】:

    标签: bootstrap-4 dropdown popper.js


    【解决方案1】:

    Bootstrap 尚不兼容 Popper.js 版本 2,请参阅 https://github.com/snapappointments/bootstrap-select/issues/2385#issuecomment-579892665

    该捆绑包有效,因为它捆绑了正确版本的 Popper,请参阅 https://getbootstrap.com/docs/4.5/getting-started/introduction/

    【讨论】:

      【解决方案2】:

      bootstrap.budle.min.js 或 bootstrap.budle.js 解决问题。

      【讨论】:

        【解决方案3】:

        正如它之前的回答...... popper js v2 与 boostrap 不兼容

        你需要降级 popper.js 版本

        cdn:

        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
        

        【讨论】:

          猜你喜欢
          • 2021-08-31
          • 2018-05-24
          • 1970-01-01
          • 2021-07-13
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2013-10-20
          • 2021-02-24
          相关资源
          最近更新 更多