星期
获取或设置星期几。
接受 0(星期日)到 6(星期六)之间的数字。 如果超出范围,它将冒泡到其他几周。
dayjs().day() // gets day of current week
dayjs().day(0) // returns new dayjs object
dayjs#date
表示月份的日期,dayjs#day
表示星期几。
获取或设置星期几。
接受 0(星期日)到 6(星期六)之间的数字。 如果超出范围,它将冒泡到其他几周。
dayjs().day() // gets day of current week
dayjs().day(0) // returns new dayjs object
dayjs#date
表示月份的日期,dayjs#day
表示星期几。