Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-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
hp-smart
Commits
b6fa0187
Commit
b6fa0187
authored
Oct 10, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.日期改为字符串
parent
7a2deb79
Hide 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 @
b6fa0187
...
...
@@ -279,7 +279,8 @@ function currShortDate() {
const
year
=
date
.
getFullYear
();
const
month
=
date
.
getMonth
()
+
1
;
// 月份从0开始,需要加1
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
());
}
/**
...
...
@@ -291,7 +292,7 @@ function currShortMonth() {
const
date
=
new
Date
();
const
year
=
date
.
getFullYear
();
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