当需要模板字符串去new Date对象一定得注意空格问题
let today = new Date();
let year = today.getFullYear();
let month = today.getMonth() + 1;
let day = today.getDate();
let hour = today.getHours();
let minute = today.getMinutes();
let second = today.getSeconds();
let str = `${year}-${month}-${day} ${hour}:${minute}:${second}`;
let date = new Date(str);