• 2024-11-21vuejs日期操作辅助类DateUtils
    code//日期戳转日期字符串:yyyy-MM-ddHH:mm:ssexportconstformatDate=(v:string|number|Date)=>{if(v==null){return'';}else{constdateObj=newDate(v);//创建Date对象constyear=dateObj.getFullYear();