“2021-01-28 18:34:28”时间转化成时间戳格式

			    let thisTime = "2021-01-28 18:34:28";
                thisTime = thisTime.replace(/-/g, '/');
                let time = new Date(thisTime);
                time = time.getTime();
                console.log(time)

你可能感兴趣的:(“2021-01-28 18:34:28”时间转化成时间戳格式)