js 格式化时间 时间转字符串
js 格式化时间 时间转字符串
常规项目
Date.prototype.format = function (fmt) {
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(
原创
2020-12-09 17:33:56 ·
588 阅读 ·
0 评论