toArray()


moment().toArray();

这会返回一个数组,该数组反映了 new Date() 中的参数。

moment().toArray(); // [2013, 1, 4, 14, 40, 16, 154];
moment().toArray();

This returns an array that mirrors the parameters from new Date().

moment().toArray(); // [2013, 1, 4, 14, 40, 16, 154];