---
# System prepended metadata

title: to-do list專案 & 委任 delegatione觀念
tags: [ALPHACampWeek3]

---

###### tags:`ALPHACampWeek3`

to-do list專案 & 委任 delegatione觀念
===
完整專案(細節寫在註解裡)
---
https://codepen.io/ks0dcongra/pen/PoJMyNL?editors=1010

event delegation 委任
---
- 子層委託父層去執行操作

https://codepen.io/alpha-camp/pen/zyPyqa

event.stopPropagation()
---
- 可以避免bubbling由下而上的傳導停在這一層

element.addEventListener第三個參數
---
- 可以控制是否要捕捉capture(一般用不到)
```
element.addEventListener("click", handler, useCapture)
```

