摘要: 工作中经常遇到按照指定格式的时间进行展示。可参考以下脚本逻辑满足需求 Date.prototype.PtTimeByFormat = function (fmt){ var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 阅读全文
posted @ 2023-09-20 19:50 辉兔子 阅读(116) 评论(0) 推荐(0) 编辑