--- title: Console.groupEnd() slug: Web/API/Console/groupEnd translation_of: Web/API/Console/groupEnd ---
{{APIRef("Console API")}}
在 Web控制台中退出一格缩进(结束分组). 请参阅 {{domxref("console")}} 中的Using groups in the console 来获取它的用法和示例.
{{AvailableInWorkers}}
console.groupEnd();
None.
Specification | Status | Comment |
---|---|---|
{{SpecName("Console API", "#groupend", "console.groupEnd()")}} | {{Spec2("Console API")}} | Initial definition |
{{CompatibilityTable}}
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic support | 2 | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("9.0")}} | 11 | {{CompatVersionUnknown}} | 4.0[1] |
Available in workers | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoDesktop("38.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Feature | Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoMobile("9.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
Available in workers | {{CompatUnknown}} | {{CompatVersionUnknown}} | {{CompatGeckoMobile("38.0")}} | {{CompatUnknown}} | {{CompatUnknown}} | {{CompatUnknown}} |
[1] Implemented in http://trac.webkit.org/changeset/35421.