//处理时间
timeFilter(time) {
if ( time == 0 || time == "--") {
return time;
}
const day = dayjs(0).millisecond(Number.parseInt(time));
let str = "";
if (day.minute() >= 0) {
str += day.minute() + "′";
}
if (day.second() >= 0) {
str += day.second() + "″";
}
return str;
},
dayjs毫秒转换分秒格式
最新推荐文章于 2024-02-01 16:30:24 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)