moment.unix(time).format('HH:mm:ss') // 时间戳转换12:36:16
moment.unix(time).format('Y-MM-DD') // 时间戳转换2019-12-12
moment.unix(time).format('HH:mm') // 时间戳转换36分钟16秒
moment(time, "HH:mm")*1/1000 // 将36分钟16秒转换为时间戳
moment(params).format('X') //2018-12-04 15:26:58转时间戳
monment.js常用转换方式
最新推荐文章于 2022-11-11 23:22:20 发布