将持续时间对象序列化为 JSON 时,它将表示为 ISO8601 字符串。 ¥When serializing a duration object to JSON, it will be represented as an ISO8601 string. JSON.stringify({ postDuration : dayjs.duration(5, 'm') }); // '{"postDuration":"PT5M"}'