当前版本 v1.11
获取或设置年份。
dayjs().year() // gets current year dayjs().year(2000) // returns new dayjs object
Day.js 中文文档 - 粤ICP备14034220号-1