Weekday
星期添加 .weekday()
API 以获取或设置区域感知的星期几。
var weekday = require('dayjs/plugin/weekday')
dayjs.extend(weekday)
// when Sunday is the first day of the week
dayjs().weekday(-7); // last Sunday
dayjs().weekday(7); // next Sunday
// when Monday is the first day of the week
dayjs().weekday(-7) // last Monday
dayjs().weekday(7) // next Monday