Skip to content

Commit

Permalink
Update files/zh-cn/web/javascript/event_loop/index.md
Browse files Browse the repository at this point in the history
Co-authored-by: A1lo <[email protected]>
  • Loading branch information
familyboat and yin1999 authored Oct 26, 2024
1 parent a58c57d commit 46a0c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/zh-cn/web/javascript/event_loop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const seconds = new Date().getTime() / 1000;

setTimeout(() => {
// 输出“2”,表示回调函数并没有在 500 毫秒之后立即执行
console.log(`Ran after ${new Date().getTime() / 1000 - seconds} seconds`);
console.log(`${new Date().getTime() / 1000 - seconds} 秒后运行`);
}, 500);

while (true) {
Expand Down

0 comments on commit 46a0c40

Please sign in to comment.