会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一首简单的歌
博客园
首页
新随笔
联系
订阅
管理
2020年7月3日
js Date使用
摘要: 一 Date中获取月份的范围是0-11,不是1-12 所以在使用时需要注意,如果需要通过Date拿到正确的月份,可以拿到month后进行+1操作。 var date=new Date(); console.log(date); console.log("当前月份:",date.getMonth())
阅读全文
posted @ 2020-07-03 23:56 一首简单的歌
阅读(195)
评论(0)
推荐(0)
公告