Наши волонтёры ещё не перевели данную статью на Русский. Присоединяйтесь к нам и помогите сделать эту работу!
Вы можете также прочитать эту статью на English (US).

Creates a new inline group in the Web Console. Unlike console.group(), however, the new group is created collapsed. The user will need to use the disclosure button next to it to expand it, revealing the entries created in the group.

Call console.groupEnd() to back out to the parent group.

See Using groups in the console in the console documentation for details and examples.

Note: This feature is available in Web Workers.

Syntax

console.groupCollapsed([label]);

Parameters

label
Label for the group. Optional.

Specifications

Specification Status Comment
Console API
The definition of 'console.groupCollapsed()' in that specification.
Living Standard Initial definition

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic supportChrome Full support 6Edge Full support 12Firefox Full support 52IE Full support 11Opera ? Safari Full support 5.1WebView Android ? Chrome Android ? Edge Mobile Full support YesFirefox Android Full support 52Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

Метки документа и участники

Внесли вклад в эту страницу: connorshea, fscholz, bkdotcom, valtlai, erikadoyle, Sebastianz, chrisdavidmills, cvrebert, teoli, ESWAT, kscarfone, Sheppy, ziyunfei, myakura
Обновлялась последний раз: connorshea,