2020年2月1日
摘要: 有关Javascript的本地时间获取,下面我直接用代码来进行举例吧 1 let time = new Date(); 2 let month = time.getMonth()+1; //获取的月份0~11要进行加1 3 let day = time.getDate(); //获取天数 4 let 阅读全文
posted @ 2020-02-01 13:41 镇宁 阅读(277) 评论(0) 推荐(0) 编辑