Last updated 5 years ago
Was this helpful?
语法:
_.now()
源代码链接:
npm包链接:
描述:
获得 Unix 纪元(1 January1970 00:00:00 UTC)直到现在的毫秒数。
1970 00
开始版本:2.4.0
返回值:
(number): 返回时间戳。
(number)
例子:
_.defer(function(stamp) { console.log(_.now() - stamp); }, _.now()); // => 记录延迟函数调用的毫秒数