console: groupCollapsed() method

groupCollapsed 方法用于在控制台中创建一个新的组。但是,与 console.group() 不同,创建的新组是默认折叠的。用户将需要使用其旁边的披露按钮进行扩展,从而展示内容。

语法

groupCollapsed(label: string?): undefined;

参数

label

折叠组的名称。

返回值

无(undefined)。

兼容性

LCD tables only load in the browser

除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。