Google Chrome also has a console object. Where is its equivalent API page?

If I google the 'firebug console API', it will lead me to this page:

http://getfirebug.com/wiki/index.php/Console_API

which documents for me a Javascript API that I can use to write to the firebug console

Google chrome also has a console object. Where is its equivalent API page?

For example, Firebug allows: console.log('%c%s', 'color: #ABC', 'hi') to display a string in a specific color

While Google Chrome only accepts console.log('%s', 'hi) - it does not accept% c

+6
source share
2 answers

Chrome uses the Webkit engine, the same as Safari, so you can check the console APIs from Safari.

+8
source

You do not have a link to the full documentation, but you can at least collect all available methods by running console.log(console) ;

+2
source

Source: https://habr.com/ru/post/888654/


All Articles