摘要: 获取日期的指定部分: var date =new Date(); //获取日期对象 console.log(date.getFullYear() + "年");//获取年 console.log((date.getMonth() + 1) + "月");//获取月函数默认是0~11 所以要+1 co 阅读全文
posted @ 2016-01-27 14:52 inethard 阅读(150) 评论(0) 推荐(0) 编辑