Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

Exits the current inline group in the Web Console. See Using groups in the console in the console documentation for details and examples.

Note: This feature is available in Web Workers.

Syntax

console.groupEnd();

Parameters

None.

Specifications

Specification Status Comment
Console API
The definition of 'console.groupEnd()' in that specification.
Editor's Draft Initial definition

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 2 9.0 (9.0) 11 (Yes) 4.0[1]
Available in workers ? 38.0 (38.0) ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 9.0 (9.0) ? ? ?
Available in workers ? 38.0 (38.0) ? ? ?

[1] Implemented in https://trac.webkit.org/changeset/35421.

See also

文档标签和贡献者

 最后编辑者: Sebastianz,