Skip to content

Commit 726beb8

Browse files
William-miaoYuChengKai
authored andcommitted
使用let构成的块级�作用域bug fix;
1 parent 566b387 commit 726beb8

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
@@ -526,7 +526,7 @@ for ( let i=1; i<=5; i++) {
526526
{
527527
let ii = i
528528
setTimeout( function timer() {
529-
console.log( i );
529+
console.log( ii );
530530
}, i*1000 );
531531
}
532532
i++

0 commit comments

Comments
 (0)