如何检查JavaScript语法错误 [英] how to check javascript syntax error

查看:165
本文介绍了如何检查JavaScript语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

萤火虫看起来没有能力检查JS语法错误...

Firebug looks not capable to check js syntax error...

有没有什么好办法做到这一点?

Is there any good way to do that?

目前我只写一个js,但萤火虫没有表现出任何错误,但功能却完全打破了。

Currently I just wrote a js but the firebug didn't show any error but the functionality is totally broken.

推荐答案

萤火虫没有做到这一点。请确保您有JavaScript控制台启用,您可以通过点击控制台下拉列表,并从他们选择的启用这样做。您需要preSS <大骨节病> F12 键打开Firebug,一旦你刷新页面,你会看到在萤火控制台JS脚本您有任何错误。

Firebug does do it. Make sure that you have JavaScript Console enabled, you can do so by clicking the Console dropdown and from their select Enabled. You need to press F12 key to open firebug and once you refresh the page, you will see any errors you have in your script in the firebug js console.

如果您使用的是Firefox,你也可以preSS <大骨节病>对照+ Shift键+ J 打开Firefox的错误对话框。

If you are using Firefox, you can also press Contr+Shift+J to open firefox's error dialog.

这篇关于如何检查JavaScript语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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