首页 > 编程语言 > 详细

[Javascript] Log Levels and Semantic Methods

时间:2016-05-14 06:39:53      阅读:169      评论:0      收藏:0      [点我收藏+]

Go beyond console.log by learning about log levels, filtering log output and structuring your output to be meaningful and concise. The JavaScript console object offers many methods to make your life easier - start learning them here!

 

console.log("this is console.log message");
console.error("this is console.error message");
console.warn("this is console.warn message");
console.info("this is console.info message");
console.debug("this is console.debug message"); 

 

技术分享

 

Able to use Chrome dev tool‘s Filter to filter the console message

技术分享

[Javascript] Log Levels and Semantic Methods

原文:http://www.cnblogs.com/Answer1215/p/5491805.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!