Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hg-smart
Commits
016aebfa
Commit
016aebfa
authored
Oct 10, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.日期调整为字符串
parent
1b5c1b5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
common.js
src/main/webapp/common/js/common.js
+3
-2
No files found.
src/main/webapp/common/js/common.js
View file @
016aebfa
...
@@ -277,7 +277,8 @@ function currShortDate() {
...
@@ -277,7 +277,8 @@ function currShortDate() {
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
const
day
=
date
.
getDate
();
const
day
=
date
.
getDate
();
return
year
+
(
month
<
10
?
'0'
+
month
:
month
.
toString
())
+
(
day
<
10
?
'0'
+
day
:
day
);
return
year
.
toString
()
+
(
month
<
10
?
'0'
+
month
:
month
.
toString
())
+
(
day
<
10
?
'0'
+
day
:
day
.
toString
());
}
}
/**
/**
...
@@ -289,7 +290,7 @@ function currShortMonth(getYear) {
...
@@ -289,7 +290,7 @@ function currShortMonth(getYear) {
const
date
=
new
Date
(
getYear
);
const
date
=
new
Date
(
getYear
);
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
return
year
+
(
month
<
10
?
'0'
+
month
:
month
);
return
year
.
toString
()
+
(
month
<
10
?
'0'
+
month
:
month
.
toString
()
);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment