【问题标题】:How to fix the Error; "SyntaxError: Identifier 'getScrollParents' has already been declared; Bootstrap tooltips require Tether;如何修复错误; “SyntaxError:标识符‘getScrollParents’已被声明;引导工具提示需要 Tether;
【发布时间】:2018-07-29 01:00:45
【问题描述】:

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

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

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

how to fix the error bootstrap tooltips require tether 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

【问题讨论】:

    标签: javascript bootstrap-4 bootstrap-grid tether


    【解决方案1】:

    我找到了解决办法

    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>
    

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        猜你喜欢
        • 2016-04-06
        • 2021-03-28
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-10-25
        • 2021-11-18
        • 2021-09-29
        • 1970-01-01
        相关资源
        最近更新 更多