dayjs将服务端返回时间戳转为YYYY-MM-DD HH:mm:ss格式并表单回显 一、依赖package.json:二、引入 import dayjs from 'dayjs'; const setValue = (e: any) => { const start_time = dayjs.unix(e.start_time).format('YYYY-MM-DD HH:mm:ss'); const end_time = dayjs.unix(e. React 2021年09月14日 1 点赞 0 评论 588 浏览