简体   繁体   English

Firefox抛出错误 - 正则表达式太复杂

[英]Firefox throws error - regular expression too complex

I'm doing a load() on a page using Jquery, using Jquery Minified 1.3.2 and in ff4, it's telling me regular expression is too complex, and not completing the load. 我正在使用Jquery在页面上执行load(),使用Jquery Minified 1.3.2,在ff4中,它告诉我正则表达式太复杂,并且没有完成加载。 Works with no errors at all in chrome. 在chrome中完全没有错误。 Any idea what's going on? 知道发生了什么事吗? Thanks a lot guys! 非常感谢!

Just ran into the same error in FF4 (NOT in FF3.6). 刚刚在FF4中遇到了同样的错误(不是在FF3.6中)。 We're running jQuery 1.4.4. 我们正在运行jQuery 1.4.4。

For us, the issue was a bad jQuery selector. 对我们来说,问题是一个糟糕的jQuery选择器。 Namely: 即:

$("#top *[contenteditable=true") $(“#top * [contenteditable = true”)

When it should have been: 什么时候应该是:

$("#top *[contenteditable=true]") $(“#top * [contenteditable = true]”)

That missing right bracket fixed it. 缺少右括号修复了它。 I recommend double-checking your selectors. 我建议仔细检查您的选择器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM