摘要: 1.给Date对象添加format方法,date类型的对象即可使用格式化方法(注意需要引入main.js中) Date.prototype.format = function(fmt) { let o = { "M+" : this.getMonth()+1, //月份 "d+" : this.ge 阅读全文
posted @ 2023-01-04 15:53 jmwyc 阅读(855) 评论(0) 推荐(0)