-4

11.06.2012 17:40

我需要的只是放入数组值

mydate.day = 11;
mydate.month = 6;
mydate.year = 2012;
mydate.hours = 17;
mydate.minutes = 40;
4

1 回答 1

16
"11.06.2012 17:40".split(/[.: ]/).map(Number);
//[11, 6, 2012, 17, 40]
于 2012-06-10T14:34:40.757 回答