時間倒數計時器之
距離2022年貓咪咪生日還有多少時間?

0

0

小時

0

分鐘

0

秒鐘

HTML 程式語法-CodePen

See the Pen
Countdown-timer-JS
by G-Dee (@G-Dee)
on CodePen.

CSS 程式語法-CodePen

See the Pen
Countdown-timer-JS
by G-Dee (@G-Dee)
on CodePen.

JavaScript 程式語法-CodePen

See the Pen
Countdown-timer-JS
by G-Dee (@G-Dee)
on CodePen.

 

 

參考資料:

背景圖片來源

1.換算時間,將日期轉換成數字

2.餘數運算子 (%)

3.Math.floor()取最接近的整數

4.2023年的到數計時參考網站

5.條件運算子的簡潔寫法

6.在10以下的時候前面多加一個0,變成01,02,03,……09

最後修改日期: 2022 年 6 月 24 日

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。