ArraySupport
ArraySupport 扩展了 dayjs()
、dayjs.utc
API 以支持数组参数。
¥ArraySupport extends dayjs()
, dayjs.utc
APIs to support array argument.
var arraySupport = require("dayjs/plugin/arraySupport");
// import arraySupport from 'dayjs/plugin/arraySupport' // ES 2015
dayjs.extend(arraySupport);
dayjs([2010, 1, 14, 15, 25, 50, 125]);
dayjs.utc([2010, 1, 14, 15, 25, 50, 125]);