For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/lynx-api/global/console/groupCollapsed.md.
Lynx
  • 简体中文
  • 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 许可协议进行许可。