js时间

获取当前时间:

var today = new Date();
var curYear = today.getFullYear();
var curMonth = today.getMonth() + 1;
var curDay = today.getDate();
var curHour = today.getHours();
var curMinute = today.getMinutes();
var curSecond = today.getSeconds();
var curMilliSecond = today.getMilliseconds();

var curQuarter = (today.getMonth() + 3) / 3;

明天:

var today = new Date();
var tomorrow = today.setDate(today.getDate() + 1);
原文地址:https://www.cnblogs.com/argenbarbie/p/8463129.html