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

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

问题描述

我怎么从 Firefox Web Console 收到这条消息

How come I get this message from Firefox Web Console

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

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

同一网页可以在 Chrome 控制台中打印消息,但不能在 Firefox 中打印.我在另一台电脑的Firefox(不知道是什么版本)Web Console 中打开了相同的网页,可以打印消息.我的 Firefox 版本是最新的,8.0.

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.

推荐答案

例如,当页面本身定义了一个名为 console 的全局变量时,就会发生这种情况.如果页面是浏览器嗅探来决定是否定义它,则行为在不同浏览器中可能会有所不同.

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.

对于 Firefox,在安装 Firebug 并启用其控制台时也会发生这种情况,因为这会覆盖默认的 window.console.

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天全站免登陆