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();本文共 257 字,大约阅读时间需要 1 分钟。
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();转载于:https://www.cnblogs.com/shaozhu520/p/11298796.html