Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的名字是 Piet Hazewinkel,我创建了一个关于法国一个小村庄的网站,但我对 Fancybox 有疑问。我制作了一个带有 2 张图片的测试页 (www.francetastique.eu/aaa.html),以用 fancybox 展示。它工作正常。我希望它也适用于页面(www.francetastique.eu/fotofancy.html)。但它不起作用。我不知道我做错了什么。有没有人可以帮助我?非常感谢你的帮助。皮特
Uncaught TypeError: Object [object Object] has no method 'fancybox'(来自 Chrome 调试器)
错误可能从第 8 行开始:Bad value X-UA-Compatible for attribute http-equiv on element meta。
问题是加载了两个 jQuery 文件。删除一个后,它现在运行。感谢 JFK 和 rajesh 的回答。