获取当前日期时间 var now = new Date(); now.getYear(); //获取当前年份(2位) now.getFullYear(); //获取完整的年份(4位,1970-****) now.getMonth(); //获取当前月份(0-11,0代表1月) now.get……