现在已经这样做了一个多小时 - lightbox 插件工作得很好(如预期),但出于某种原因我无法让这个 fancybox 插件正常工作。
设置:
For testing purposes I am using the images from fancy box's website - absolute path reference -, the jQuery declaration from their site, and the css file they recommend I use.
错误:
Uncaught TypeError: Object # has no method 'undelegate'
查看错误:
- 转到The Error Page并检查 chrome 中的元素
- 请随意查看我网站的来源,我几乎确信我已经正确引用了所有内容
非常感谢您的帮助,谢谢。
最佳答案
您好,您正在使用旧版本的 jQuery,即 1.4.1。
.undelegate() 方法是在 jQuery 1.4.2 版本中添加的。将 jQuery 版本更改为 1.4.2 或最新版本,fancybox 即可正常工作
关于jquery - fancybox 错误 - 对象 #<Object> 没有方法 'undelegate',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12130780/