|
@@ -3,7 +3,7 @@
|
|
* @Autor: kindring
|
|
* @Autor: kindring
|
|
* @Date: 2021-10-14 18:53:00
|
|
* @Date: 2021-10-14 18:53:00
|
|
* @LastEditors: kindring
|
|
* @LastEditors: kindring
|
|
- * @LastEditTime: 2021-11-11 15:28:03
|
|
|
|
|
|
+ * @LastEditTime: 2022-03-10 16:34:56
|
|
* @LastDescript:
|
|
* @LastDescript:
|
|
*/
|
|
*/
|
|
/**
|
|
/**
|
|
@@ -19,8 +19,8 @@ function dateFormat(date, format = 'YYYY-MM-DD H:m:s') {
|
|
MM: ('0' + (date.getMonth() + 1)).substr(-2, 2), //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
|
|
MM: ('0' + (date.getMonth() + 1)).substr(-2, 2), //getMonth() 方法根据本地时间返回指定日期的月份(从 0 到 11)
|
|
DD: ('0' + date.getDate()).substr(-2, 2),
|
|
DD: ('0' + date.getDate()).substr(-2, 2),
|
|
H: ('0' + date.getHours()).substr(-2, 2),
|
|
H: ('0' + date.getHours()).substr(-2, 2),
|
|
- m: ('0' + date.getMinutes()).substr(-2, 2),
|
|
|
|
- s: ('0' + date.getSeconds()).substr(-2, 2),
|
|
|
|
|
|
+ M: ('0' + date.getMinutes()).substr(-2, 2),
|
|
|
|
+ S: ('0' + date.getSeconds()).substr(-2, 2),
|
|
}
|
|
}
|
|
console.log(config);
|
|
console.log(config);
|
|
for (const key in config) {
|
|
for (const key in config) {
|