Where is the console API for WebKit/Safari?(WebKit/Safari 的控制台 API 在哪里?)
问题描述
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()
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()
console.profileEnd()
console.trace()
console.dir()
console.dirxml()
console.assert()
console.time()
console.profile()
console.timeEnd()
console.group()
console.groupEnd()
(基于 WebKit nightly build 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 在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:WebKit/Safari 的控制台 API 在哪里?


- 使用 iframe URL 的 jQuery UI 对话框 2022-01-01
- 我不能使用 json 使用 react 向我的 web api 发出 Post 请求 2022-01-01
- 如何向 ipc 渲染器发送添加回调 2022-01-01
- 如何显示带有换行符的文本标签? 2022-01-01
- 是否可以将标志传递给 Gulp 以使其以不同的方式 2022-01-01
- 在不使用循环的情况下查找数字数组中的一项 2022-01-01
- 为什么我的页面无法在 Github 上加载? 2022-01-01
- 如何调试 CSS/Javascript 悬停问题 2022-01-01
- 从原点悬停时触发 translateY() 2022-01-01
- 为什么悬停在委托事件处理程序中不起作用? 2022-01-01