摘要:
//格式化日期:yyyy-MM-dd function formatDate(date) { var myyear = date.getFullYear(); var mymonth = date.getMonth()+1; var myweekday = date.getDate(); if(my 阅读全文
摘要:
获取当前时间 ,用 var now = new Date(); //获取当前时间,Tue Feb 07 2017 17:28:35 GMT+0800 (中国标准时间) now.getFullYear(); //2017,年份 now.getMonth(); //1,月份的范围是0-11,1是表示2月 阅读全文