var
d =
new
Date();
var
year = d.getFullYear();
var
month = d.getMonth() + 1;
var
date = d.getDate();
var
day = d.getDay();
var
Hours=d.getHours();
//获取当前小时数(0-23)
var
Minutes=d.getMinutes();
//获取当前分钟数(0-59)
var
Seconds=d.getSeconds();
//获取当前秒数(0-59)
时间: 2024-10-09 18:33:55