var time = '2019-05-20 00:00:00';

var repTime = time.replace(/-/g, '/');//用正则主要是把“2019-05-20 00:00:00”转换成“2019/05/0 00:00:00”兼容ios

console.log("返回时间:" + repTime);

var timeTamp = Date.parse(repTime);

console.log("返回时间戳:" + timeTamp)

TAG标签: 微信小程序1000毫秒

http://www.xiaochengxub.com/read-99979.html