const time = "2021-2-12 12:35:36"
const dateTime= Date.parse(time)
年月日时分秒转换时间戳
猜你喜欢
转载自blog.csdn.net/weixin_48164217/article/details/118767990
今日推荐
周排行