- fork 此 repo 到自己的 Github ,並 clone 到自己電腦
- 將
master
保護起來,禁止推 master branch- 到自己的 repo > Settings > Branches > Branch protection rules > add rule 設定
- 每個功能都開一個 branch 進行
- 舉例:
feature/Complete_task_add_checked
- 舉例:
- 完成後,發 PR 到自己的 repo 並且自己 merge 進
master
- 點擊任務標記是否完成
- 點擊 li 新增/移除
checked
class
- 點擊 li 新增/移除
- 點擊 x 刪除任務
- 點擊 span (後面那個 x) 可移除任務
- 輸入新任務名稱, 按下+新增任務
- 取得 input 輸入的文字
- 按下 + 可以新增任務(li)
- 新增的任務也有標記/移除功能
- (加分題) 拖拉任務
- 透過 HTML Drag and Drop API 完成,可參考 (04_bonus-drag)
建議使用原生 JavaScript 實作,所有程式都會寫在 main.js 檔,不會修改到其他檔案。