星期
取得或設定星期幾。
接受從 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
是指星期幾。