var str='2020-10-20 12:00:00'
new Date(str.replace(/-/g,'/')).getTime()
//当前时间戳
new Date().getTime()
08-18
3206
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-15
835
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-15
1902
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-09
2001
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-29