返回到现在为止的相对时间的字符串。 This requires the 相对时间 plugin to work dayjs.extend(relativeTime) dayjs('1999-01-01').toNow() // in 22 years 如果传递 true,则可以获得不带后缀的值。 dayjs.extend(relativeTime) dayjs('1999-01-01').toNow(true) // 22 years 细分范围一览表