JS获取系统当前时间

//系统当前时间
var now = new Date();
var year = now.getFullYear();
var month = now.getMonth() + 1;
var day = now.getDate();
var currentime = year + "-" + month + "-" + day;
currentimes = Date.parse(new Date(currentime));

原文地址:https://www.cnblogs.com/shoose/p/7744696.html