周 (ISO)
获取或设置 一年中的 ISO 周。
需要配合 IsoWeek 插件才能工作
dayjs.extend(isoWeek)
dayjs().isoWeek() // gets the current ISO week of the year
newDate = dayjs().isoWeek(2) // returns new dayjs object
当前版本 v1.11
更多文档获取或设置 一年中的 ISO 周。
需要配合 IsoWeek 插件才能工作
dayjs.extend(isoWeek)
dayjs().isoWeek() // gets the current ISO week of the year
newDate = dayjs().isoWeek(2) // returns new dayjs object
Day.js 中文文档 - 粤ICP备14034220号-1