WebKit/Safari 的控制台 API 在哪里?

编程入门 行业动态 更新时间:2024-10-12 05:46:45
本文介绍了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 在哪里?

本文发布于:2023-11-28 09:01:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641768.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控制台   WebKit   Safari   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!