Skip to content

Commit

Permalink
使用let构成的块级�作用域bug fix;
Browse files Browse the repository at this point in the history
  • Loading branch information
William-miao authored and YuChengKai committed Sep 11, 2018
1 parent 566b387 commit 726beb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JS/JS-ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ for ( let i=1; i<=5; i++) {
{
let ii = i
setTimeout( function timer() {
console.log( i );
console.log( ii );
}, i*1000 );
}
i++
Expand Down

0 comments on commit 726beb8

Please sign in to comment.