firebug详解

原文转至 非常详细

http://www.blogjava.net/caihaibo2008/archive/2008/05/14/200386.html?opt=admin

使用视频:
http://www.digitalmediaminute.com/screencast/firebug-js/

补充示例

格式化字符串 类型 
%s 字符串 
%d, 整型 
%i (暂不支持数字型) 
%f 浮点型 (暂不支持数字型) 
%o 链接对象


!ie 表示IE不支持, different ie 表示火狐与ie输出值不同,经测试IE9,其他尚不明确

<span style="white-space:pre">	</span>var a = "I Love You ";
	var b = 520;
	var c = "Beautiful Girl!";
	//console.group('开始分组:');	// !ie 
	console.log("The Value is %s and the Value of the b is %d and I like %s",a,b,c);
	console.log("Thank You ",5,2,0);
	//console.groupEnd();// !ie 
	
	console.info("this is a Info Model!");
	console.warn("this is a Warn Model!");
	console.error("this is a Error Model!");
	
	console.log(window,document);	// different ie 
	//console.debug("this is a Debug Model!");// !ie 
	
	// console.dir(window);	// 列出对象的所有属性 different ie
	// console.dirxml(document.getElementById("con_test"));	// !ie
	
	// console.time('onload');	// 测试onload函数代码运行速度 !ie
	// console.timeEnd('onload');	// !ie



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值