js时间转时间戳

转换成时间戳

new Date('2018-10-11 14:28:47'.replace(/-/g, '/')).getTime()   //1539239327000
原文地址:https://www.cnblogs.com/lanshengzhong/p/9803079.html