Skip to content

Commit 81e365b

Browse files
author
YuChengKai
committed
fix bug, add content of VueRouter
1 parent 2b6675a commit 81e365b

File tree

6 files changed

+928
-6
lines changed

6 files changed

+928
-6
lines changed

Browser/browser-ch.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,9 @@ setTimeout(()=>{
351351
}, 0)
352352

353353
// 以上代码在浏览器和 node 中打印情况是不同的
354-
// 浏览器中打印 timer1, promise1, timer2, promise2
355-
// node 中打印 timer1, timer2, promise1, promise2
354+
// 浏览器中一定打印 timer1, promise1, timer2, promise2
355+
// node 中可能打印 timer1, timer2, promise1, promise2
356+
// 也可能打印 timer1, promise1, timer2, promise2
356357
```
357358

358359
Node 中的 `process.nextTick` 会先于其他 microtask 执行。

Browser/browser-en.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ setTimeout(()=>{
353353
}, 0)
354354
// The log result is different, when the above code is executed in browser and node
355355
// In browser, it will log: timer1 => promise1 => timer2 => promise2
356-
// In node, it will log: timer1 => timer2 => promise1 => promise2
356+
// In node, it may log: timer1 => timer2 => promise1 => promise2
357+
// or timer1, promise1, timer2, promise2
357358
```
358359

359360
`process.nextTick` in Node will be executed before other microtasks.

0 commit comments

Comments
 (0)