javascript console对象 常用的方法

1 console对象
2 
3 var o = {name:'3'}
4 console.assert(o.name === '3', "name 的值应该为:string 3");
5 
6 console.time();
7 console.timeEnd();
8 
9 debugger; //调试器, 断点的作用(当代码运行到此行时,终止往下运行)

猜你喜欢

转载自www.cnblogs.com/weihexinCode/p/12318334.html