---
# System prepended metadata

title: "\U0001F3C5 Day 20 - Vue 指令練習 3"
tags: [JS 直播班 - 2023 秋季班]

---

---
tags: Vue 直播班 - 2023 冬季班
---
# 🏅 Day 20 - Vue 指令練習 3

請先閱讀完 [v-model 的課前預習](https://hackmd.io/@hexschool/S1DJeKTdL/%2Fjum_IOrASCWevidlnIAsOg) 再嘗試作答:

題目 
---
操作 [這個模板](https://codepen.io/hexschool/pen/ZERMgEE?editors=1010)，執行以下要求（只能操作 HTML 的部分）：

> 1. 請同學使用 v-model, v-bind, v-for 的概念完成練習，填寫上方的表單將可以同步更新下方 ul 的資料。
> 2. 選項的 label for、input id 需要互相對應。
> 3. Q2, Q3, Q4 的選項需要用 v-for 呈現。
> 4. Q5 的部分只需要用一個 checkbox, 並會在 true, false 之間做切換。 

![](https://i.imgur.com/9Mww5qW.png)

#### 額外挑戰
完成上述題目後，嘗試將 JS 區塊改為使用 Composition API 撰寫

## 回報流程

將答案寫在 CodePen 並複製 CodePen 連結貼至底下回報就算完成了喔! 
解答位置請參考下圖（需打開程式碼的部分觀看）

![](https://i.imgur.com/vftL5i0.png)

<!-- 解答：
解答： 
https://codepen.io/jmimiding4104/pen/wvNVrJr

額外挑戰：
https://codepen.io/jmimiding4104/pen/jOdgGBx?editors=1111

模板與解答皆有使用 Bootstrap5(於 Setting 中引入)，
所以如果想要畫面呈現是相同的要記得載入 Bootstrap5 的 CDN。
-->




回報區
---


|     Discord      |                                CodePen / 答案                                |
|:----------------:|:----------------------------------------------------------------------------:|
| Rock | [CodePen](https://codepen.io/xiu43317/pen/YzgGgZE) |
| Yijing | [CodePen](https://codepen.io/Yi-Jing-71080635/pen/ExMgpoZ?editors=0010) |
| bf_tsai | [CodePen](https://codepen.io/BF-Tsai/pen/YzgGoxY?editors=1010) | 
| Chia Pin | [CodePen](https://codepen.io/joker-cat/pen/abMmgRW) | 
| Tippy | [CodePen](https://codepen.io/Ektodor-Wang/pen/poYEXWz) | 
| Ryann | [CodePen](https://codepen.io/csw8524/pen/bGZwPjJ) | 
| 銀光菇 | [CodePen](https://codepen.io/genesynthesis/pen/WNmGqgV?editors=1010) |
| kj | [CodePen](https://codepen.io/Eero-Chiao/pen/oNVzrap) |
| Ann Chou | [CodePen](https://codepen.io/annchou_illu/pen/VwRKJQy) |
| Emily | [CodePen](https://codepen.io/Emily2089/pen/QWoKXJL?editors=1010) |
| .zack_p | [CodePen](https://codepen.io/Designer-PH/pen/zYbKVXw?editors=1010) |
| JING | [CodePen](https://codepen.io/HSUANIN0327/pen/PoLGrmB) | 
| andrea | [CodePen](https://codepen.io/Wpypy/pen/vYPXqJd?editors=1010) | 
| runweiting | [CodePen](https://codepen.io/weiting14/pen/LYaRKoQ) | 
| Fabio20 | [CodePen](https://codepen.io/fabio7621/pen/abMmewY?editors=1010) |
| Helen | [CodePen](https://codepen.io/milkteamonster/pen/XWGNrjo?editors=1010) | 
| PoRay | [CodePen](https://codepen.io/raycheng/pen/eYXBOzL?editors=1011) |
| Moreene | [CodePen](https://codepen.io/Moreene/pen/dyrObeG) | 
| FangFang | [CodePen](https://codepen.io/FangFang09/pen/rNRMERW) | 
| XinYu | [CodePen](https://codepen.io/HsuXinYu/pen/KKENPxx?editors=1010) | 
| Uli | [CodePen](https://codepen.io/uli1313/pen/ZEPBEOz?editors=1010) | 
| hedy | [CodePen](https://codepen.io/Hedy_H/pen/rNRWNGx?editors=1010) | 
| PoWei#8484 | [CodePen](https://codepen.io/Po-Wei-Lai/pen/GReNgJe?editors=1010) | 
| haru | [CodePen](https://codepen.io/haru_portfoilo/pen/jOJVOgP?editors=1010) |
| KUN. | [CodePen](https://codepen.io/barry91205/pen/RwdobwP?editors=1010) | 
| dora | [CodePen](https://codepen.io/dorayu/pen/VwRKJgx?editors=1010) | 
| Winnie | [CodePen](https://codepen.io/codepen-io-winnie/pen/dyrOPMq?editors=1010) |
| RayRay | [CodePen](https://codepen.io/CityRay/pen/KKENwGm) |
| Ataraxia | [CodePen](https://codepen.io/ataraxia8888/pen/wvOoBXM) | 
| 精靈 | [CodePen](https://codepen.io/justafairy/pen/mdoOJow) |
| 小夏 | [CodePen](https://codepen.io/michaelhsia/pen/VwRmeKE) |
| elena | [CodePen](https://codepen.io/elena0127abc/pen/KKENzpy) | 
| ann6212 | [CodePen](https://codepen.io/yqmegupa-the-styleful/pen/JjzbGwe) | 
| WEI | [CodePen](https://codepen.io/wei-z/pen/NWJbNvw) | 
| hua | [CodePen](https://codepen.io/LHua/pen/eYXBmJv) |
| yu.t_liu | [CodePen](https://codepen.io/YuT200053/pen/QWoGExX?editors=1010) |
| kawa | [CodePen](https://codepen.io/z83xji6/pen/zYboKaW?editors=1010) | 
| MY | [CodePen](https://codepen.io/ahmomoz/pen/PoLbGxq?editors=1010) | 
|Wei_Rio|[CodePen](https://codepen.io/wei_wu/pen/NWJbbMX?editors=1010)|
| jia yu | [CodePen](https://codepen.io/fjqxaznl-the-reactor/pen/qBvqrWp?editors=1010) | 
| 風羽 | [CodePen](https://codepen.io/Joy-Huang/pen/QWoGvKq?editors=1010) |
| 熊大 | [CodePen](https://codepen.io/asiating/pen/yLwVOVj) | 
| 欣霓 | [CodePen](https://codepen.io/tvxq5206/pen/YzgpGOb?editors=1010) |
| 小正 | [CodePen](https://codepen.io/colorgolden/pen/JjzbrVd) |
| Charlotte Lee | [CodePen](https://codepen.io/char849/pen/XWGNVee) |
| Celine 510 | [CodePen](https://codepen.io/Celine-510/pen/jOJMjLj) |
| SHUO | [CodePen](https://codepen.io/xrzarxkl-the-reactor/pen/XWGNqpg?editors=1010) | 
| Ariel | [CodePen](https://codepen.io/ariel0510/pen/rNRWjNX) |
| macihuang | [CodePen](https://codepen.io/macy1215/pen/XWGNWbJ) |
| Eazy | [CodePen](https://codepen.io/Eazychen/pen/NWJbZYe?editors=1010) | 
| 黃士桓 | [codePen](https://codepen.io/shr-huan-huang/pen/vYPgNMd) |
| Nelly | [CodePen](https://codepen.io/Nelly-Guo/pen/QWodjoR?editors=1010) | 
| Tom | [CodePen](https://codepen.io/sp1daTomm/pen/wvOgKQQ) |
| cest_jessie | [CodePen](https://codepen.io/itsjessiechen/pen/oNVBbRJ) | 
| xuan | [CodePen](https://codepen.io/xuan0915/pen/jOJyqgK?editors=1000) | 
| Yang | [CodePen](https://codepen.io/Yang-J/pen/qBvRRXN) |
| Leo | [CodePen](https://codepen.io/Aruminiya/pen/PoLWOWO) |
| _amaaaa | [CodePen](https://codepen.io/Alicia-Chu/pen/VwRPzgq?editors=1010)|
|Eden|[Codepen](https://codepen.io/iseden/pen/ZEPLRVM)|
|保羅|[Codepen](https://codepen.io/paul-1997/pen/VwRPRxp)|
|skypassion5000|[Codepen](https://codepen.io/skypassion5000/pen/LYaxKax)|
|MikeLin|[Codepen](https://codepen.io/MikeLin0701/pen/PoLWMjX)|
| 狸貓 | [CodePen](https://codepen.io/tanuki320/pen/rNRyMex?editors=1010) | 
| PayRoom |[CodePen](https://codepen.io/water38198/pen/VwRpmgZ)
| sponge | [CodePen](https://codepen.io/biunpujm-the-flexboxer/pen/jOJBMyg?editors=1010) | 
| hsuhsusophie | [CodePen](https://codepen.io/hsuhsusophie/pen/ExMWWGv?editors=1010) | 
| carrie| [CodePen](https://codepen.io/echocarriet/pen/JjzWygL)|
| Chris | [CodePen](https://codepen.io/cjtseng07/pen/wvOJmXy) | 
| fanshu0303 | [CodePen](https://codepen.io/JuiHsuanLee0303/pen/wvOJYdK) |
| jeremyChan | [CodePen](https://codepen.io/nudieisgood/pen/GRemPYG?editors=1011) | 
| 翔.Ben | [CodePen](https://codepen.io/energy95272z/pen/BabRgVR?editors=1010) | 
| Ting | [Codepen](https://codepen.io/liara/pen/poYwJwy?editors=1010)|
| chihyang | [Codepen](https://codepen.io/hike1707/pen/rNRwYZq)|
| stone4584 | [Codepen](https://codepen.io/Royen0506/pen/zYbzmWz)|
| santu0868 | [CodePen](https://codepen.io/HatsumiSan/pen/poYrNVj?editors=1010) |
| peggy | [CodePen](https://codepen.io/peggylai/pen/ExMvMwL?editors=1010) | 
|yuling|[Codepen](https://codepen.io/igzdflpu/pen/GReyyyR?editors=1010)|
|Iris|[Codepen](https://codepen.io/iris831206/pen/VwRyxRZ?editors=1010)|
|貢波波夫|[Codepen](https://codepen.io/mxgrfgcr-the-bashful/pen/eYXMvgB)|
|WA|[Codepen](https://codepen.io/ldddl/pen/ZEPNvzN)|
| yuan! | [CodePen](https://codepen.io/townyuan/pen/poBjNEd) | 


<!-- 
|  | [CodePen]() | 
-->
