js获取年月日
程序员文章站
2022-07-09 20:27:25
var date=new Date(); var year = date.getFullYear(); var month = date.getMonth() + 1; var day = date.getDate(); var hour = date.getHours(); var minute ... ......
var date=new date(); var year = date.getfullyear(); var month = date.getmonth() + 1; var day = date.getdate(); var hour = date.gethours(); var minute = date.getminutes(); var second = date.getseconds();