Skip to content

Commit 02c1074

Browse files
committed
docs(features): edit console
1 parent 85796a0 commit 02c1074

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/features/console.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ console.assert(false, '判断条件不成立')
288288

289289
// 相当于
290290
try {
291-
if (false) {
291+
if (!false) {
292292
throw new Error('判断条件不成立');
293293
}
294294
} catch(e) {
@@ -333,8 +333,8 @@ console.log('一级分组的内容');
333333
console.group('二级分组');
334334
console.log('二级分组的内容');
335335

336-
console.groupEnd(); // 一级分组结束
337336
console.groupEnd(); // 二级分组结束
337+
console.groupEnd(); // 一级分组结束
338338
```
339339

340340
上面代码会将“二级分组”显示在“一级分组”内部,并且“一级分组”和“二级分组”前面都有一个折叠符号,可以用来折叠本级的内容。

0 commit comments

Comments
 (0)