【发布时间】:2013-12-30 03:50:25
【问题描述】:
这里我有一个函数:
timeline.getDataRange();
这给了我这个结果:
Object {min: Sun Dec 31 1899 14:00:00 GMT+0100 (Central Europe Standard Time), max: Fri Dec 13 2013 15:07:22 GMT+0100 (Central Europe Standard Time)}
max: Fri Dec 13 2013 15:07:22 GMT+0100 (Central Europe Standard Time)
min: Sun Dec 31 1899 14:00:00 GMT+0100 (Central Europe Standard Time)
__proto__: Object
现在我想将此日期(min 和 max)转换为毫秒
我试试这个:
function startEndSec () {
var myDate = timeline.getDataRange();
var pocetak = myDate[0].getTime();
return pocetak;
}
但控制台说:Cannot call method 'getTime' of undefined
如何将此日期(最小,最大)转换为毫秒?
【问题讨论】:
标签: javascript jquery date datetime time