比如,
t1,t2 均为 new Date(1900,1,1,v1.Hour,v1.Month,v1.Second) 格式化过的date值
我想让 t1 - t2 自动得出 以30分钟为单位的值。
比如1.49小时 = 1小时
1.99小时 = 1.5 小时
除了if类判断,还有什么其它更好的办法没