可能重复:
Calculating the difference between two dates
What’s the best way to calculate date difference in Javascript
如何在JavaScript中找到两个日期之间的差异?
答案 0 :(得分:1)
return date1 - date2;
// returns the number of microseconds between the two `Date`s.
答案 1 :(得分:0)
答案 2 :(得分:0)