Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 726beb8

Browse files
William-miaoYuChengKai
authored and
YuChengKai
committed
使用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)

AltStyle によって変換されたページ (->オリジナル) /