Files
freeCodeCamp/guide/chinese/javascript/standard-objects/date/date-now/index.md
2018-10-16 21:32:40 +05:30

379 B
Raw Blame History

title, localeTitle
title localeTitle
Date Now 现在日期

现在日期

Date.now方法返回自1970年1月1日00:00:00 UTC以来经过的毫秒数。

句法

var timeInMs = Date.now(); 

Date.now(); 
 // 1508783660969 

更多信息:

MDN文档