首页 > 技术文章 > 转换时间戳,兼容webkit和IE
holy-amy 2018-06-06 16:01 原文
var date="2018-6-6"; var test=Date.parse(date.replace(/-/g,"/"));console.log(test)