WebKit / Safari的控制台API在哪里? [英] Where is the console API for WebKit/Safari?
问题描述
WebKit / Safari支持控制台对象,这与Firebug类似。但究竟是什么支持?有关于Firebug的控制台文档,但是在哪里可以找到Safari的控制台文档/ WebKit?
WebKit/Safari supports the console object, which is similar to what Firebug does. But what exactly is supported? There is a console documentation for Firebug, but where can I find the console documentation for Safari/WebKit?
推荐答案
支持的方法最初是:
-
console.log()
-
console.error()
-
console.warn()
-
info()
console.log()
console.error()
console.warn()
console.info()
较新版本的WebKit还添加了以下方法,使WebKit控制台API几乎完全相同 Firebug的控制台API :
Newer versions of WebKit also add the following methods making the WebKit console API almost identical to Firebug's console API:
-
console.count()
-
console.debug code>
-
console.profileEnd()
-
console.trace()
-
console.dir()
-
console.dirxml()
-
console.assert()
-
console.time()
-
console.profile )
-
console.timeEnd()
-
console.group()
-
console.groupEnd()
console.count()
console.debug()
console.profileEnd()
console.trace()
console.dir()
console.dirxml()
console.assert()
console.time()
console.profile()
console.timeEnd()
console.group()
console.groupEnd()
(基于WebKit每晚构建WebKit-SVN-r37126的新信息,在写这些方法时不能在Safari中使用)
(New information based on the WebKit nightly build WebKit-SVN-r37126, at the time of writing these methods aren't available in Safari)
这篇关于WebKit / Safari的控制台API在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!