取得或設定 ISO 週中的星期,其中 1 為星期一,7 為星期日。 這需要 IsoWeek 外掛才能運作 dayjs.extend(isoWeek) dayjs().isoWeekday() // gets the current ISO day of the week dayjs().isoWeekday(1); // Monday