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