Date.parse(),在这段代码中的目的是什么?

代码:
var date= new Date(Date.parse(strTime.replace(/-/g, "/")));

我看到多篇教程里,都是如上方式转化时间。但经过测试,是否有“Date.parse()”的最终结果是一样的。

那这里增加“Date.parse()”的用意是什么?

        var time = '2019-08-22 14:32:20 '
        time = time.replace(/-/g, "/") // ->> 2019/08/22 14:32:20 

        var date1 = new Date(time); // ->> Thu Aug 22 2019 14:32:20 GMT+0800 (中国标准时间)
        console.log(date1);

        var time2 = Date.parse(time); // ->> 1566455540000
        console.log(time2);

        var date1 = new Date(time); // ->> Thu Aug 22 2019 14:32:20 GMT+0800 (中国标准时间)
        console.log(date1);

教程地址

获取时间戳,时间戳:时间戳是指字符串或编码信息用于辨识记录下来的时间日期。国际标准为ISO8601。
如果不是跨国提供服务的项目,可以不用管

+new Date(time),也可以做到。用意就不知道,看是不是有啥别的需求