blob: 6d1c1b44a2666b84a7ad7d1e42fb55ae9ec6f185 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
---
title: console.group
slug: Web/API/Console/group
translation_of: Web/API/Console/group
---
<p>{{ ApiRef() }}</p>
<h2 id="Summary" name="Summary">概述</h2>
<p>在 <a href="/zh-cn/Tools/Web_Console" title="Web Console">Web控制台</a>上创建一个新的分组.随后输出到控制台上的内容都会被添加一个缩进,表示该内容属于当前分组,直到调用{{ domxref("console.groupEnd()") }}之后,当前分组结束.</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="eval">console.group();
</pre>
<h2 id="参数">参数</h2>
<p>无.</p>
<h2 id="备注">备注</h2>
<p>在文档{{ domxref("console") }}中查看<a href="/zh-cn/DOM/console#Using_groups_in_the_console" title="zh-cn/DOM/console#Using_groups_in_the_console">在控制台中使用分组</a>,了解更多详细内容.</p>
<h2 id="Specification" name="Specification">规范</h2>
<p>不属于任何公开的规范</p>
<h2 id="浏览器兼容性">浏览器兼容性</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>Basic support</td>
<td>2</td>
<td>{{ CompatGeckoDesktop("2.0") }}</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatVersionUnknown() }}</td>
<td>4.0</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Feature</th>
<th>Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Mobile</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Basic support</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatGeckoMobile("2.0") }}</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatUnknown() }}</td>
<td>{{ CompatUnknown() }}</td>
</tr>
</tbody>
</table>
</div>
<h2 id="相关链接">相关链接</h2>
<ul>
<li><a class="external" href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly documentation: Console</a></li>
</ul>
<p>{{ languages( {"en": "en/DOM/console.group" } ) }}</p>
|