原创 js 查看距離元旦還有多久

一個比較複雜的計算,重點的獲取相差的毫秒數,通過獲取相差的毫秒數 計算相差的時間。 var now = new Date() var target = new Date('2020/1/1') //元旦的時間 var d = ta