WebKit/Safari 的控制台 API 在哪里?
- 作者: 今晚打老虎-_-
- 来源: 51数据库
- 2022-12-20
问题描述
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)
推荐阅读
热点文章
检查拆分键盘
0
带有“上一个"的工具栏和“下一个"用于键盘输入AccessoryView
0
Activity 启动时显示软键盘
0
UIWebView 键盘 - 摆脱“上一个/下一个/完成"酒吧
0
在 iOS7 中边缘滑动时,使键盘与 UIView 同步动画
0
我的 iOS 应用程序中的键盘在 iPhone 6 上太高了.如何在 XCode 中调整键盘的分辨率?
0
android:inputType="textEmailAddress";- '@' 键和 '.com' 键?
0
禁用 iPhone 中键盘的方向
0
Android 2.3 模拟器上的印地语键盘问题
0
keyDown 没有被调用
0
