摘要: 一 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)