Browser Console operation-Portable notes

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.