Firefox Web控制台已禁用? [英] Firefox Web Console Disabled?

查看:156
本文介绍了Firefox Web控制台已禁用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从Firefox Web Console获取此消息?b
$ b


Web控制台日志API(console.log,console.info,console .warn,console.error)已被此页面上的脚本禁用


同一个网页可以在Chrome控制台中打印邮件,但不能Firefox浏览器。我在另一台电脑的Firefox(不知道什么版本)打开同一个网页,Web控制台可以打印信息。我的Firefox版本是8.0的最新版本。

当这个页面本身定义了一个全局变量 console ,例如。如果页面是浏览器嗅探来决定是否定义它,那么在不同浏览器中的行为可能会有所不同。



对于Firefox,它也会在安装Firebug时发生,它的控制台是启用的,因为它覆盖了默认的 window.console


How come I get this message from Firefox Web Console

The Web Console logging API (console.log, console.info, console.warn, console.error) has been disabled by a script on this page

The same webpage can print messages in Chrome Console but not Firefox. I opened the same webpage in another computers' Firefox (don't know what version) Web Console can print messages. My Firefox version is the latest, 8.0.

解决方案

This happens when the page itself defines a global variable called console, for example. If the page is browser-sniffing to decide whether to define it, the behavior could differ in different browsers.

In the case of Firefox it also happens when Firebug is installed and its console is enabled, since that overrides the default window.console.

这篇关于Firefox Web控制台已禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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