【问题标题】:How to add Bootstrap 4 without Tether?如何在没有 Tether 的情况下添加 Bootstrap 4?
【发布时间】:2017-03-27 22:10:20
【问题描述】:

添加 Bootstrap (v4.0.0-alpha.5) 后出现以下错误。

bootstrap.js:2676 Uncaught Error: Bootstrap tooltips require Tether (http://tether.io/)(…)

我不想使用需要 tether.min.js 进行引导的工具提示功能,因此我不想添加额外的 tether.min.js。

有没有在不添加 tether.min.js 的情况下使用 bootstrap 4 的方法?

【问题讨论】:

    标签: javascript jquery twitter-bootstrap


    【解决方案1】:

    根据https://github.com/twbs/bootstrap/issues/18732#issuecomment-168243561,您必须手动排除 tooltip.js,并可能构建一个新的 bootstrap.js 缩小版本,以便在不包括 tether.min.js 的情况下消除此错误。

    【讨论】:

      猜你喜欢
      • 2019-08-27
      • 2021-03-10
      • 1970-01-01
      • 2017-01-18
      • 1970-01-01
      • 2017-12-20
      • 1970-01-01
      • 2023-04-07
      • 2019-03-01
      相关资源
      最近更新 更多