import isString from 'lodash/isString'
export const removeHMS = (timeString) => {
if (isString(timeString)) {
return timeString.split(' ')[0]
}
return timeString
}
去除时分秒
最新推荐文章于 2024-09-06 22:20:29 发布
import isString from 'lodash/isString'
export const removeHMS = (timeString) => {
if (isString(timeString)) {
return timeString.split(' ')[0]
}
return timeString
}