Evil Firefox Error - “底层对象不支持参数或操作” [英] Evil Firefox Error -- "A parameter or an operation is not supported by the underlying object"

查看:353
本文介绍了Evil Firefox Error - “底层对象不支持参数或操作”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道这里发生了什么。我已经玩了好几个小时了,似乎不知道为什么会发生这种情况。

I'm trying to figure out what is going on here. I've been at it for hours now and can't seem to get a grip on why this is happening.

我正在做一些AJAX调用,我

I'm making a few AJAX calls, and I keep getting this error back only in Firefox (version 21) on Mac OS X.

这里是错误:

 "[Exception... "A parameter or an operation is not supported by the underlying object" 
   code: "15" nsresult: "0x8053000f (InvalidAccessError)"  location: 
   "https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js Line: 6"

我正在进行CORS调用,所以我设置了AJAX:

I'm making a CORS call, so I set up my AJAX like so:

$.ajaxSetup({
        crossDomain: true,
        xhrFields: {
            withCredentials: true
        }

    });

然后继续呼叫,基本上,有没有任何人有这个错误的经验?它们都似乎与跨域CSS,我不使用。

And continue calls henceforth. Basically, does anyone out there have ANY experience with this error? I see some posts online but they all seem to do with Cross-Domain CSS, which I'm not using.

推荐答案

好吧,

CORS(跨域资源共享)调用我正在制作设置为async:false - (我意识到,我没有包括在我的原始帖子,因为我认为这是无关紧要的)这似乎操作正常在所有浏览器,除了Firefox,其中jQuery会吠叫你和你ajax调用将失败。

The CORS (Cross-Domain Resource Sharing) calls I was making were set to 'async: false' -- (which I realize I did not include in my original post, as I thought it was inconsequential) this, seems to operate fine in all browsers except Firefox, where jQuery will bark at you and your ajax call will fail.

感谢大家的帮助,我希望这有助于别人!

Thank you all for your help and I hope this helps someone else!

这篇关于Evil Firefox Error - “底层对象不支持参数或操作”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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