在Firefox中,console.log没有显示任何内容 [英] In Firefox, console.log is not showing anything

查看:288
本文介绍了在Firefox中,console.log没有显示任何内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Firefox中使用一个简单的console.log函数:

I'm trying a simple console.log function in Firefox:

console.log("Hello, World!");

您可以尝试以下方法: http://jsfiddle.net/EkZjK/

You may try it on: http://jsfiddle.net/EkZjK/

您也可以在独立的HTML文件中尝试完整的代码:

You may also try the full code in a stand-alone HTML file:

<html>
    <head>
        <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
        <script type="text/javascript">
            console.log("Hello World !");
        </script>
    </head>
</html>

我在Chrome中获得控制台日志. 但是在Firefox中,我看不到日志.

I get console logs in Chrome. But in Firefox I cannot see the logs.

我尝试了 Firebug 控制台和 Ctrl + Shift + J . 两者都不在Firefox中显示日志消息.

I tried the Firebug console and Ctrl + Shift + J. Both don't show the log message in Firefox.

PS:我重新启动了Firefox,重新启动了Windows,在另一台计算机上尝试过,删除了Firefox配置文件并创建了另一个配置文件,然后重新安装了Firefox.但是问题仍然存在.

PS: I restarted Firefox, restarted Windows, tried on another machine, deleted the Firefox profile and created another one, and reinstalled Firefox. But the problem still exists.

我该如何解决?

推荐答案

重新安装Firebug插件即可解决此问题. 现在它出现在Firebug控制台中(不在 Ctrl + Shift + J 中).

Reinstalling the Firebug plugin solved the issue. Now it appears in the Firebug console (not in Ctrl + Shift + J).

这篇关于在Firefox中,console.log没有显示任何内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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