关于Date

          new Date(毫秒)返回距1970的一个公元纪年,

date.getFullYear()

date.getMonth()

date.getDate()

分别返回年月日,要命的是date.getMonth()返回的是0-11,所以用时要+1。

原文地址:https://www.cnblogs.com/sevenmoons/p/2760992.html