ToArray
ToArray 增加了 .toArray()
API 来返回包含时间数值的 array
。
var toArray = require('dayjs/plugin/toArray')
dayjs.extend(toArray)
dayjs('2019-01-25').toArray() // [ 2019, 0, 25, 0, 0, 0, 0 ]
ToArray 增加了 .toArray()
API 来返回包含时间数值的 array
。
var toArray = require('dayjs/plugin/toArray')
dayjs.extend(toArray)
dayjs('2019-01-25').toArray() // [ 2019, 0, 25, 0, 0, 0, 0 ]