摘要: // 旦前 含时分秒function getNowFormatDate() { let date = new Date() let seperator1 = "-" let seperator2 = ":" let month = date.getMonth() + 1 < 10 ? "0" + ( 阅读全文
posted @ 2020-12-25 13:42 王希有 阅读(114) 评论(0) 推荐(0) 编辑
摘要: let data = function (mounth) { //创建现在的时间 let data = new Date() //获取年 let year = data.getFullYear() //获取月 let mon = data.getMonth() + 1 //获取日 let dated 阅读全文
posted @ 2020-12-25 13:40 王希有 阅读(213) 评论(0) 推荐(0) 编辑