Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
53b8fddd
authored
2021-01-29 11:13:09 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style;头部·
1 parent
aae3c77f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
staticJs/header.js
staticJs/header.js
View file @
53b8fdd
...
...
@@ -58,12 +58,12 @@ function getDateWeek() {
date
=
todayDate
.
getDate
();
month
=
todayDate
.
getMonth
()
+
1
;
year
=
todayDate
.
getYear
();
var
dateweek
=
"
今天是:
"
;
var
dateweek
=
""
;
if
(
navigator
.
appName
==
"Netscape"
)
{
dateweek
=
dateweek
+
(
1900
+
year
)
+
"年"
+
month
+
"月"
+
date
+
"日 "
;
dateweek
=
(
1900
+
year
)
+
"年"
+
month
+
"月"
+
date
+
"日 "
;
}
if
(
navigator
.
appVersion
.
indexOf
(
"MSIE"
)
!=
-
1
)
{
dateweek
=
dateweek
+
year
+
"年"
+
month
+
"月"
+
date
+
"日 "
;
dateweek
=
year
+
"年"
+
month
+
"月"
+
date
+
"日 "
;
}
switch
(
todayDate
.
getDay
())
{
case
0
:
dateweek
+=
"星期日"
;
break
;
...
...
Please
register
or
sign in
to post a comment