var today = new Date() Date.now()) //1509778119553 Date.parse(today) //1509778119000 today.valueOf()) //1509778119553 today.getTime() //1509778119553
可以看出,第二种是精确到秒的时间戳,其他几种都相同
(注:时间戳单位为毫秒)