【问题标题】:Error $(...).tooltip is not a function in console错误 $(...).tooltip 不是控制台中的函数
【发布时间】:2021-01-22 03:01:56
【问题描述】:

我在控制台中收到一条错误消息 $(...).tooltip is not a function

这是我的代码

$('.selector').tooltip().mouseover(test);

【问题讨论】:

  • 谁能帮忙
  • 您是否包含任何工具提示插件?看起来不像

标签: jquery tooltip jquery-tooltip


【解决方案1】:

确保在您的代码中包含 jQuery 和 jQuery UI 插件。并确保您使用 1.9 或更高版本。事实上,越更新越好。否则,如果您有 1.9 之前的版本,您将无法使用此功能。证明:

添加的版本:1.9(来源:API.jQueryUI.com: Tooltip Widget。)

如果您没有 1.9 或更高版本的 jQuery UI,您将收到错误消息:tooltip() is not a function()

【讨论】:

    猜你喜欢
    • 2017-09-12
    • 1970-01-01
    • 2023-01-26
    • 1970-01-01
    • 2020-01-03
    • 1970-01-01
    • 2016-03-21
    • 2017-02-22
    • 1970-01-01
    相关资源
    最近更新 更多