问题描述
我正在尝试将现有应用程序从jQuery 1.3.2升级到jQuery 1.4.2.当我这样做时,页面无法正确加载,并且firefox的错误控制台显示错误消息未捕获的异常:语法错误,无法识别的表达式:语法错误,无法识别的表达式:搜索".
I am trying to upgrade an existing application from jQuery 1.3.2 to jQuery 1.4.2.When I do this, the page fails to load correctly and firefox's error console displays the error message "uncaught exception: Syntax error, unrecognized expression: Syntax error, unrecognized expression: search".
如何确定导致此异常的原因?
How can I determine what is causing this exception?
推荐答案
通过单击控制台"选项卡左上角的图标,将Firebug设置为打破所有脚本错误.
下次发生错误时,您将转到相关行. (不过,您需要先增加调用堆栈)
Set Firebug to break on all script errors, by clicking the icon on the top-left corner of the Console tab.
Next time the error happens, you'll be taken to the relevant line. (You'll need to go up the call stack first, though)
或者,在脚本中的选择器中搜索单词search
.
Alternatively, search your script for the word search
inside a selector.
这篇关于未捕获的异常:jQuery升级后出现语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!