console对象对IE浏览器/谷歌浏览器/火狐浏览器/Opera浏览器支持情况
-
1.IE浏览器中的console支持以下几种输出
log info warn error assert dir clear profile profileEnd
-
2.火狐浏览器
log info warn error debug exception assert dir dirxml trace group groupEnd groupCollapsed time timeEnd profile profileEnd count clear table notifyFirebug firebug
-
3.谷歌浏览器
profiles memory debug error info log warn dir dirxml trace assert count markTimeline profile profileEnd time timeEnd group groupCollapsed groupEnd
-
4.Opera浏览器
time timeEnd trace profile profileEnd debug log info warn error assert dir dirxml group groupCollapsed groupEnd count table
总结:
四种浏览器对常用的
log、info、warn、error四个基本方法都是支持的