年月日时分秒转换时间戳

const time = "2021-2-12 12:35:36"
const dateTime= Date.parse(time)

猜你喜欢

转载自blog.csdn.net/weixin_48164217/article/details/118767990