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));

posted @ 2017-10-27 18:20  shuzu渊  阅读(123)  评论(0编辑  收藏  举报