最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Google chrome also has a console object. Where is its equivalent API page? - Stack Overflow

programmeradmin1浏览0评论

if I google 'firebug console API' it leads me to this page:

.php/Console_API

which documents for me the Javascript console API 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 output a string in a particular color

While google chrome only accepts console.log('%s', 'hi) - it dosn't accept %c

if I google 'firebug console API' it leads me to this page:

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

which documents for me the Javascript console API 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 output a string in a particular color

While google chrome only accepts console.log('%s', 'hi) - it dosn't accept %c

Share Improve this question edited Jan 11, 2012 at 13:30 Dr. Rajesh Rolen 14.3k42 gold badges110 silver badges180 bronze badges asked May 20, 2011 at 15:19 Tucker JonesTucker Jones 811 silver badge4 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

Chrome is using Webkit engine, same as Safari, so you can check out Console API from Safari.

Don't have a link to full documentation but you can at least glean all the methods available by running console.log(console);

发布评论

评论列表(0)

  1. 暂无评论