1.安装Firebug Lite
具体安装方法查看Firebug Lite的主页
http://getfirebug.com/lite.html
2.添加一段javascript到页面中
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() {}
}
或直接下载firebugx.js
http://getfirebug.com/firebug/firebugx.js