Underscore.JS - now 方法

语法

_.now()

now 方法使用运行时可用的最快方法返回当前时间戳。请参阅以下示例 −

示例

var _ = require('underscore');

console.log(_.now());

将上述程序保存在tester.js中。运行以下命令执行该程序。

命令

\>node tester.js

输出

1590549158176

underscorejs_utilities.html