使用Firebug的console导致IE提示对象未定义错误

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


posted on 2008-10-15 14:36 Gordian Yuan 阅读(7928) 评论(3)  编辑  收藏

评论

# re: 使用Firebug的console导致IE提示对象未定义错误 2014-05-26 17:04 奋斗

范德萨分撒范德萨分股份大股东分  回复  更多评论   

# re: 使用Firebug的console导致IE提示对象未定义错误 2014-09-30 18:39 王红波

怎么回事  回复  更多评论   

# re: 使用Firebug的console导致IE提示对象未定义错误 2014-12-20 19:11 zhangjie

http://hd.tianyu.163.com/spokesman/cover  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
<2014年9月>
日一二三四五六
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

统计

常用链接

留言簿(1)

随笔档案

文章档案

搜索

最新评论

阅读排行榜

评论排行榜