js怎么通过在格式时间获取年月日var date = new Date()var year = date.getFullYear()var month = date.getMonth()+1var day = date.getDate()var hour = date.g2023-04-27JavaScript290