0

我试图通过安装 tether.js 和 utils.js 来解决这个问题,当我修复一个错误时,似乎又弹出了 2 个错误。

这是一个类似帖子的链接,但我遇到了一个稍微不同的问题,这个问题是我从上一个问题中产生的。

有什么我可以做的吗?还是我应该回到boostrap3

如何修复错误引导工具提示需要系绳 HTTP github

tether.js:1 Uncaught SyntaxError: Identifier 'getScrollParents' has already been declared
    at tether.js:1

Uncaught Error: Bootstrap tooltips require Tether (http://tether.io/)
    at bootstrap.min.js?ver=3.0.0:7
    at bootstrap.min.js?ver=3.0.0:7
    at bootstrap.min.js?ver=3.0.0:7
4

2 回答 2

0

我找到了解决方案

https://forums.asp.net/t/2121600.aspx?Uncaught+Error+Bootstrap+tooltips+require+Tether

我换了行

<script src="<?php bloginfo('stylesheet_directory'); ?>/js/node_modules/tether/src/js/tether.js"></script>

<script src="<?php bloginfo('stylesheet_directory'); ?>/js/node_modules/tether/dist/js/tether.min.js"></script>
于 2018-02-18T19:37:05.317 回答
0

使用 tether.min.js 解决您的问题

于 2018-12-19T04:34:46.903 回答