js new Date() 格式方法一:const getDate = ()=>{var d=new Date()var year=d.getFullYear()var month=change(d.getMonth()+1)var day=chan2023-03-07JavaScript220