如何检查JavaScript语法错误语法错误、JavaScript

2023-09-10 21:38:53 作者:残痕

萤火虫看起来没有能力检查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.

 
精彩推荐
图片推荐