const options = { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: false };
const now = new Intl.DateTimeFormat('zh', options).format(new Date()).replace(/[/]/g,"-")
console.log("当前时间", now);