let date = '2021-12-08 12:00:00'
date = date.substring(0, 19)
date = date.replace(/-/g, '/')
const endTimeTamp = new Date(date).getTime()
时间字符串转时间戳
最新推荐文章于 2024-07-05 00:30:00 发布
let date = '2021-12-08 12:00:00'
date = date.substring(0, 19)
date = date.replace(/-/g, '/')
const endTimeTamp = new Date(date).getTime()