标签:
Organize your log output by grouping your logs into collapsable hierarchies using console.group().
for(var i = 0; i < 100; i++){ var num = Math.random() * 100; console.groupCollapsed("Picking a random number!"); console.log("Number greater than 10?", num > 10); console.log("Number greater than 50?", num > 50); console.groupCollapsed("This is a nested log group"); console.log(i); console.groupEnd(); console.groupEnd(); }
[Javascript] Grouping and Nesting Console Log Output
标签:
原文地址:http://www.cnblogs.com/Answer1215/p/5498230.html