or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
非同步機制
JavaScript 為什麼不採用多執行緒
單執行緒的狀況下- 習慣的思維
多執行緒的狀況下- 沒有互斥鎖的狀況
非同步仍是必要的- 畫面凍結的問題
https://codesandbox.io/s/ui-blocking-r354l
我都要! 單執行緒+非同步機制
Event Loop (事件循環機制)
Render時機與畫面凍結
為什麼要用 setTimeout, 只用 Promise.resolve 不可以嗎?
何時使用 microtask
小試身手
總結
Q&A
歡迎來到真實世界
請寫出以下印出 0~9 的順序
其他挑戰
參考來源、圖片來源