摘要: 1、获取特定格式的时间 var myDate = new Date();//获取系统当前时间 myDate.getYear(); //获取当前年份(2位) myDate.getFullYear(); //获取完整的年份(4位,1970-????) myDate.getMonth(); //获取当前月 阅读全文
posted @ 2022-05-16 09:12 前端小沫 阅读(8859) 评论(0) 推荐(1) 编辑