会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
JohnnyYu
博客园
首页
新随笔
联系
管理
订阅
2017年4月1日
js 日期操作 (转载:http://blog.sina.com.cn/s/blog_699d2e170101q6iz.html)
摘要: myDate = new Date(); myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????) myDate.getMonth(); //获取当前月份(0-11,0代表1月) myDate.getDa
阅读全文
posted @ 2017-04-01 09:35 JohnnyYu
阅读(476)
评论(0)
推荐(0)
编辑
公告