星期
获取或设置星期几。
接受 0(星期日)到 6(星期六)之间的数字。如果超出范围,它将冒泡到其他几周。
dayjs().day() // gets day of current week
dayjs().day(0) // returns new dayjs object
dayjs#date
表示月份的日期,dayjs#day
表示星期几。
当前版本 v1.11
更多文档获取或设置星期几。
接受 0(星期日)到 6(星期六)之间的数字。如果超出范围,它将冒泡到其他几周。
dayjs().day() // gets day of current week
dayjs().day(0) // returns new dayjs object
dayjs#date
表示月份的日期,dayjs#day
表示星期几。
Day.js 中文文档 - 粤ICP备14034220号-1