摘要: new Date('2016-1'); //错误 1到9月份必须 01 02 。。。。。。 正确 new Date('2016-01'); var nowMonth = nowMonth>=10 ? nowMonth : '0'+nowMonth; //兼容火狐 阅读全文
posted @ 2016-11-25 10:53 太菜 阅读(208) 评论(0) 推荐(0) 编辑