我很好奇Underscore的_.now方法比单纯的更快new Date().getTime().我在他们的github代码库上看到以下内容.
// A (possibly faster) way to get the current timestamp as an integer.
_.now = Date.now || function() {
return new Date().getTime();
};
Run Code Online (Sandbox Code Playgroud)
有人可以解释一下这里发生了什么吗?