Subtract
返回减去一定时间的复制的 Day.js 对象。
dayjs().subtract(7, 'year')
各个传入的单位对大小写不敏感,支持缩写和复数。
When decimal values are passed for days and weeks, they are rounded to the nearest integer before subtracting.
返回减去一定时间的复制的 Day.js 对象。
dayjs().subtract(7, 'year')
各个传入的单位对大小写不敏感,支持缩写和复数。
When decimal values are passed for days and weeks, they are rounded to the nearest integer before subtracting.