本文介绍了如何添加不带Tether的Bootstrap 4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm getting the below error after adding Bootstrap (v4.0.0-alpha.5).

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

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

I don't want to use the tooltips feature which requires tether.min.js for bootstrap therefore I don't want to add additional tether.min.js.

有没有使用bootstrap 4而不添加tether.min.js吗?

Is there anyway to use bootstrap 4 without adding tether.min.js ?

推荐答案

按照 https://github.com/twbs/bootstrap/issues/18732#issuecomment-168243561 ,您将必须手动排除tooltip.js并可能构建新的简化版本的bootstrap.js才能摆脱错误而不包含tether.min.js.

As per https://github.com/twbs/bootstrap/issues/18732#issuecomment-168243561, you will have to exclude tooltip.js manually and possibly build a new minified version of bootstrap.js in order to get rid of this error without including tether.min.js.

这篇关于如何添加不带Tether的Bootstrap 4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 20:42