Today in the computer room suddenly think of a fun thing-using the console debugging code, actually thought before, but did not practice.
I use 360 browser, IE browser F12 after the window is like this, do not like the interface ah ...
First, record today's Test (2016/12/2)
Line Wrap--shift+enter
1. Alert Bounce Window
2. Console.log Printing
2. Console.log Print output general information
3. Console.info Output Indicative information
Console.error Output error message
Console.warn Output Alert Information
4. Console.group output A set of information at the beginning of the beginning can be like a folder to expand, after the expansion of a vertical line
Console.groupend end a set of output information
5. Count execution times
6. Dir (); Node Tree information
7. Time Timeend, "Array Initialize" corresponds to the name of the time period
Another way to record time:
Doesn't seem to be much different.
8. Profile view memory, run can be viewed in profile
9. Assert debugging