javascript - Chrome 命令行 API 中的 table() 是什么

标签 javascript google-chrome google-chrome-devtools

在 Chrome Dev Tools 控制台中,有一个名为 table 的函数,如下所示:

enter image description here

所以我去了Command Line API Reference , 但在那里没有找到 table 。

有人知道它是什么和做什么吗?谢谢

最佳答案

我只能推测它是一个尚未记录的模拟实现 Firebug Console API method :

console.table(data[, columns])

Allows to log provided data using tabular layout. The method takes one required parameter that represents table-like data (array of arrays or list of objects). The optional columns parameter can be used to specify columns and/or properties to be logged (see more at softwareishard.com).


在最初的问题之后一段时间,它是 finally documented :

table(data[, columns])

Log object data with table by passing in a data object in with optional column headings

关于javascript - Chrome 命令行 API 中的 table() 是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19981445/

相关文章:

google-chrome - 阻止用户在 Chrome 中退出全屏模式

javascript - 我可以创建一个不打开滚动条的元素吗?

selenium - WebDriver 和 DevTool 协议(protocol)有什么区别

javascript - 附加井号时未选择 div

javascript - 在 phonegap 应用程序中加载基本的身份验证安全图像

javascript - Angular2 单元测试 Http MockBackend 问题 - 无法在 mergeOptions 读取未定义的属性合并

javascript - 数组中的多个数据但仅按名称排序

javascript - jsreact - 获取 http ://localhost:8080/manifest. json 404(未找到)

css - 为什么谷歌浏览器不会自动中断?

python - 使用 Selenium webdriver 运行时是否可以使用 Chrome 的开发工具?