function time() {
const today = new Date();//当天日期
const year = new Date().getFullYear();//返回表示年份的4位数;
const month = new Date().getMonth() + 1;//月是从0开始的;
const day = new Date().getDate();//日
const hour = new Date().getHours();//时
const minute = new Date().getMinutes()//分
const second = new Date().getSeconds()//秒
let time = year + '-' + month + '-' + day + '-----' + hour + ':' + ((minute > 9) ? minute : ('0' + minute)) + ':' + ((second > 9) ? second : ('0' + second));
}