最大值
返回给定 Day.js 实例的最大值(最远的未来)。 它接受多个参数和包含 Day.js 实例的数组。
This requires the
最小最大
plugin to work
dayjs.extend(minMax)
dayjs.max(dayjs(), dayjs('2018-01-01'), dayjs('2019-01-01'))
dayjs.max([dayjs(), dayjs('2018-01-01'), dayjs('2019-01-01')])