时间戳转化
//格式转化 业务逻辑是 xxxx/xx/xx xx:xx 格式,其他格式改一下就好了 如果想要到秒自己再加一行 getTimeSetForOL(date) { try { let C = new Date(date); return ( C.getFullYear() + "/" + (C.getMonth()<10?"0"+(C.getMonth()+1):C.getMonth()+1) + "/" + (C.getDate()<10?"0"+C.getDate():C.getDate()) + " " + (C.getHours() < 10 ? "0" + C.getHours() : C.getHours()) + ":" + (C.getMinutes() < 10 ? "0" + C.getMinutes() : C.getMinutes()) ); } catch (error) { console.log(error); } },