JS日期格式化转换方法

Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "H+": this.getHours(), //
posted @ 2024-02-11 17:48  85541585  阅读(5)  评论(0编辑  收藏  举报