var date=new Date() date.getFullYear() 年 date.getMonth() 月 date.getDate() 日 转载于:https://www.cnblogs.com/xwchengc/p/4157156.html