小程序开放平台

文档中心
小游戏配置
模块化
基础功能
xhs
console
debug
error
group
groupEnd
info
log
warn
定时器
XHSWebAssembly

console.group(string label)

开发
>
框架
>
基础功能
>
console
>
group
>
更新时间:2024-11-25 14:32:31

在调试面板中创建一个新的分组。随后输出的内容都会被添加一个缩进,表示该内容属于当前分组。调用 console.groupEnd 之后分组结束。

参数

string label

分组标记,可选。

该文档是否对您有帮助?