res.beginDate = countFormat(res.beginDate)
res.endDate = countFormat(res.endDate)
const countFormat = (item:any) => {
return item?moment(item).format('YYYY-MM-DD'):undefined
}
前端项目实战81-ant design日期新增数据进行处理
阅读 206
2022-10-29
res.beginDate = countFormat(res.beginDate)
res.endDate = countFormat(res.endDate)
const countFormat = (item:any) => {
return item?moment(item).format('YYYY-MM-DD'):undefined
}
相关推荐
精彩评论(0)