停止Firebug控制台命令错误
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了停止Firebug控制台命令错误相关的知识,希望对你有一定的参考价值。
Sometimes i forget to remove firebug console commands when debuging, which makes IE and some other browsers fail / cry.To stop this happening use the below script from firebugx.js on the firebug lite homepage.
(function(){ if (!window.console || !console.firebug) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; window.console = {}; for (var i = 0; i < names.length; i++) { window.console[names[i]] = function(){}; } } })();
以上是关于停止Firebug控制台命令错误的主要内容,如果未能解决你的问题,请参考以下文章