jQuery出错(在IE8中) [英] Error with jQuery (in IE8)

查看:100
本文介绍了jQuery出错(在IE8中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用时收到错误:


$(document).ready(function() {
    $("#single_image").fancybox();
})

错误是:
object不支持此属性或方法

我试图删除; 但我仍然得到错误!

I tried to remove the ; but I still get the error!

我正在使用这个插件: http://fancybox.net/

I'm using this plugin: http://fancybox.net/

推荐答案

给出的错误表明 fancybox 是不知道,这似乎表明它没有加载fancybox-js文件。

The error given indicates that the fancybox is not known, this seems to suggest it did not load the fancybox-js file.

如果这在其他浏览器中有效,我有点感到困惑,为什么会这样。

If this works in other browsers, i am a bit baffled as to why that could be.


显然这是一个已知问题:您使用的是哪个版本的fancybox / jquery?你需要至少使用版本1.4.2的jquery和fancybox的1.3.1版本。

Apparently this is a known problem: which version of fancybox/jquery are you using? You need to be using at least version 1.4.2 of jquery in conjunction with version 1.3.1 of fancybox.

这可能是旧的,因为jquery现在是1.5。 1和fancybox 1.3.4
但是这可能会进一步调查:版本不匹配?

This might be old, since jquery is now at 1.5.1 and fancybox 1.3.4 But maybe this is something to investigate further: a mismatch in versions?

这篇关于jQuery出错(在IE8中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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