import dayjs from 'dayjs'; import utc from 'dayjs/plugin/utc'; dayjs.extend(utc); 使用: dayjs(1, 'day').utc().day()