將持續時間物件序列化為 JSON 時,它會表示為 ISO8601 字串。 JSON.stringify({ postDuration : dayjs.duration(5, 'm') }); // '{"postDuration":"PT5M"}'