本文介绍了如何修复错误;'错误:Bootstrap 工具提示需要 Tether (http://github.hubspot.com/tether/)'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 Bootstrap V4,控制台中记录了以下错误;

I'm using Bootstrap V4 and the following error is logged in the console;

错误:Bootstrap 工具提示需要 Tether(http://github.hubspot.com/tether/)

我尝试通过安装 Tether 来消除错误,但没有奏效.我通过包含以下代码行安装"了 Tether;

I have tried to remove the error by installing Tether but it hasn't worked. I have 'installed' Tether by including the following lines of code;

<link rel="stylesheet" href="http://www.atlasestateagents.co.uk/css/tether.min.css">
<script src="http://www.atlasestateagents.co.uk/javascript/tether.min.js"></script>

我是否正确安装"了系绳?

Have I 'installed' tether correctly?

谁能帮我消除这个错误?

Can anyone help me remove this error?

如果您希望在我的网站上查看错误,请点击此处并加载您的控制台.

If you wish to view the error on my site, please click here and load your console.

推荐答案

对于 Bootstrap 4 stable:

由于测试版 Bootstrap 4 不依赖于 Tether 而是 Popper.js.所有脚本(必须按此顺序):

For Bootstrap 4 stable:

Since beta Bootstrap 4 doesn't depend on Tether but Popper.js. All scripts (must be in this order):

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>

有关最新的脚本版本,请参阅当前的文档.

See the current documentation for the newest script versions.

Bootstrap 4 alpha 需要 Tether,因此您需要包含 tether.min.js before 你包括 bootstrap.min.js,例如.

Bootstrap 4 alpha needs Tether, so you need to include tether.min.js before you include bootstrap.min.js, eg.

<script src="https://npmcdn.com/[email protected]/dist/js/tether.min.js"></script>
<script src="https://npmcdn.com/[email protected]/dist/js/bootstrap.min.js"></script>

这篇关于如何修复错误;'错误:Bootstrap 工具提示需要 Tether (http://github.hubspot.com/tether/)'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 20:43