//将时间戳 计算日期格式化 用于显示(接收参数为 date对象)handleData(date){const timeDate =newDate(date);const year = timeDate.getFullYear();const month =(timeDate.getMonth()+1).toString().padStart(2,0);const day = timeDate.getDate().toString().padStart(2,0);const hour = timeDate.getHours().toString().padStart(2,0);const min = timeDate.getMinutes().toString().padStart(2,0);const s = timeDate.getSeconds().toString().padStart(2,0);return year +"-"+ month +"-"+ day +" "+ hour +":"+ min +":"+ s;},