工具提示有效.现在:TypeError:$('.tooltip').tooltipster不是一个函数 [英] Tooltipster worked. Now : TypeError: $('.tooltip').tooltipster is not a function

查看:119
本文介绍了工具提示有效.现在:TypeError:$('.tooltip').tooltipster不是一个函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在重建一个简单的html/css网站,该网站应以2种语言提供.法语和英语.两者都需要工具提示. 它在法语页面上运行良好.但英文页面上根本没有.

I'm rebuilding a simple html/css website meant to be available in 2 languages. French and english. Both need tooltipster. It is working perfectly on the french page. But not at all on the english page.

错误:

TypeError:$('.tooltip').tooltipster不是函数. (在'$('.tooltip').tooltipster( )','$('.tooltip').tooltipster'未定义)

TypeError: $('.tooltip').tooltipster is not a function. (In '$('.tooltip').tooltipster( )', '$('.tooltip').tooltipster' is undefined)

该函数在html中以这种方式定义.

The function is define this way in the html.

$(document).ready(function() {
    $('.tooltip').tooltipster();
});

当英语页与法语页完全相同时,为什么它不起作用?

Why is it not working when the english page is the exact copy of the french page ?

可见于: www.krypton.fr/krypton3/index.html (法语页面) www.krypton.fr/krypton3/index-en.html (对于英文页)

Visible at : www.krypton.fr/krypton3/index.html ( for the french page ) www.krypton.fr/krypton3/index-en.html ( for the english page )

推荐答案

它不是完全相同的副本,您在英文页面上两次包含两个脚本,这可能会导致错误:

It is not an exact copy, you have two scripts included twice on english page, which probably causes the error:

这篇关于工具提示有效.现在:TypeError:$('.tooltip').tooltipster不是一个函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆