js获取当前日期

var date=new Date()

date.getFullYear()  年

date.getMonth() 月

date.getDate() 日

原文地址:https://www.cnblogs.com/xwchengc/p/4157156.html