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

问题描述

我正在使用Bootstrap V4并在控制台中记录以下错误;

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

我试图通过安装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稳定:



由于beta 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.min.js 之前包含 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