Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈峰
7 years ago
Commit
be8430286c37507cafaa7e53ca575dda5b04aae8
1 parent
73089262
hotfix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
public/js/common.js
public/js/common.js
View file @
be84302
...
...
@@ -18,7 +18,11 @@ function cookie(name) {
var
re
=
new
RegExp
(
name
+
'=([^;$]*)'
,
'i'
),
matchPattern
=
'$1'
;
return
decodeURIComponent
(
re
.
test
(
document
.
cookie
)
?
RegExp
[
matchPattern
]
:
''
);
try
{
return
re
.
test
(
decodeURIComponent
(
document
.
cookie
))
?
RegExp
[
matchPattern
]
:
''
;
}
catch
(
e
)
{
return
decodeURIComponent
(
re
.
test
(
document
.
cookie
)
?
RegExp
[
matchPattern
]
:
''
);
}
}
function
setCookie
(
name
,
value
,
options
)
{
...
...
Please
register
or
login
to post a comment