jQuery UI 选项卡,加载时抛出错误
嘿,我正在开发一个新网站,主页上的主要组件之一是使用 jQuery UI 选项卡。然而,由于某种原因,当我在 Firebug 中打开“中断所有错误”时,它会抛出错误。
我不确定到底出了什么问题,从我看来它应该按预期工作。这是相关页面的链接,预先感谢您的任何建议或解决方案。
Hey I am working on a new site build, and one of the main components on the homepage is using jQuery UI Tabs. However for some reason when I have "break on all errors" turned on in firebug, it is throwing an error.
I am not sure exactly what is wrong, from what I can see it should work as intended. Here is a link to the page in question, thanks in advance for any suggestions or solutions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它被包装在 try catch 语句中(如下),因此当所有错误的中断关闭时,它通常会默默地失败。
我不喜欢他们所做的,因为他们可以轻松地使用 if 语句而不是 try catch,但我想它适合更小的文件大小。
It is wrapped in a try catch statement (below) so it normally silently fails when break on all errors is off.
I dont like what they have done as they could easily use an if statement rather than the try catch but I guess it lends itself to smaller file size.