将时间转换为时间戳

timestampLogin = new Date('2019-08-08 16:51:07').getTime(); //1565254267000

    推荐阅读