dpes8693 / frontend-mentor-program-1rd

前端培訓
0 stars 1 forks source link

蔡昆澤_HW5、Question #46

Closed KunTsai closed 2 months ago

KunTsai commented 2 months ago

repo連結: https://github.com/KunTsai/exercise.git Question: 關於延伸題第三題,我的作法是將年月日一一抓取再做最後的匯出,會不會有更快、更簡潔的方法來做到年月日的格式修改?

dpes8693 commented 2 months ago
dpes8693 commented 2 months ago

延伸題 5 差一點點,需要補0 ex: 2*1=02

dpes8693 commented 2 months ago

repo連結: https://github.com/KunTsai/exercise.git Question: 關於延伸題第三題,我的作法是將年月日一一抓取再做最後的匯出,會不會有更快、更簡潔的方法來做到年月日的格式修改?

更快、更簡潔的方法需要用到其他開發者寫的 叫做 dayjs

官方: https://github.com/iamkun/dayjs/

教學文章: https://www.tpisoftware.com/tpu/articleDetails/1915