jquery - fancybox 错误 - 对象 #<Object> 没有方法 'undelegate'

标签 jquery fancybox undelete

现在已经这样做了一个多小时 - 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'

查看错误:

  1. 转到The Error Page并检查 chrome 中的元素
  2. 请随意查看我网站的来源,我几乎确信我已经正确引用了所有内容

非常感谢您的帮助,谢谢。

最佳答案

您好,您正在使用旧版本的 jQuery,即 1.4.1。

.undelegate() 方法是在 jQuery 1.4.2 版本中添加的。将 jQuery 版本更改为 1.4.2 或最新版本,fancybox 即可正常工作

引用:Jquery .undelegate()

关于jquery - fancybox 错误 - 对象 #<Object> 没有方法 'undelegate',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12130780/

相关文章:

jquery - 使用 jQuery Mobile 的多语言应用程序

javascript - 如何使用 jQuery 使 html5 视频播放器静音

javascript - Knockoutjs - 具有自引用多对多复选框列表的嵌套组数组

javascript - fancybox onStart onComplete 状态不工作

google-chrome - 有没有办法恢复已删除的 chrome 缓存文件?

javascript - Django 和类似 ajax 的按钮仅适用于第一项

youtube - Fancybox Youtube channel 嵌入

javascript - 提交时关闭 iFrame fancybox 的问题

svn - 如何在 Subversion/TortoiseSVN 中对已删除的文件夹执行 "undelete"操作?

amazon-s3 - 如何使用 boto 获取所有版本的 S3 key 并取消删除?