Skip to content

Commit 430e541

Browse files
MrZhang123YuChengKai
authored andcommitted
fix: fix style
1 parent 1aa5fd1 commit 430e541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JS/JS-ch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ for ( var i=1; i<=5; i++) {
481481
setTimeout( function timer() {
482482
console.log( i );
483483
}, i*1000 );
484-
}˝
484+
}
485485
```
486486

487487
首先因为 `setTimeout` 是个异步函数,所有会先把循环全部执行完毕,这时候 `i` 就是 6 了,所以会输出一堆 6。

0 commit comments

Comments
 (0)