1、moment('2019-03-15 09:25:00','YYYY-MM-DD HH:mm:ss').milliseconds()
m = moment('2019-03-15 09:25:00', 'YYYY-MM-DD HH:mm:ss');
console.log(m.valueOf());
moment().valueOf() => 输出:1668417535862
2、Date.now() = > 输出:1668417535862
1、moment('2019-03-15 09:25:00','YYYY-MM-DD HH:mm:ss').milliseconds()
m = moment('2019-03-15 09:25:00', 'YYYY-MM-DD HH:mm:ss');
console.log(m.valueOf());
moment().valueOf() => 输出:1668417535862
2、Date.now() = > 输出:1668417535862
本文标题:获取时间毫秒
本文链接:https://www.haomeiwen.com/subject/itoxwrtx.html
网友评论