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