Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
毕凯
2017-05-23 16:19:29 +0800
Commit
edf59ca024e75cacb693319893444b61285a0e9d
2 parents
7b71c611
541513ea
Merge branch 'hotfix/release57' into 'master'
cookie-foreach-problem See merge request
!601
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
doraemon/views/partial/analysis.hbs
public/js/common.js
doraemon/views/partial/analysis.hbs
View file @
edf59ca
...
...
@@ -22,7 +22,7 @@
name = '_UID',
cookies = (document.cookie && document.cookie.split(';')) || [];
cookies.forEach(function(c) {
cookies
instanceof Array && cookies
.forEach(function(c) {
if (c.indexOf(name) > -1) {
uid = decodeURIComponent(c.replace(name + '=', '').trim());
return;
...
...
public/js/common.js
View file @
edf59ca
...
...
@@ -28,7 +28,7 @@ function cookie(name) {
if
(
cookies
)
{
cookies
=
cookies
.
split
(
';'
);
cookies
.
forEach
(
function
(
c
)
{
cookies
instanceof
Array
&&
cookies
.
forEach
(
function
(
c
)
{
if
(
c
.
indexOf
(
name
)
>
-
1
)
{
cookieVal
=
decodeURIComponent
(
$
.
trim
(
c
.
replace
(
name
+
'='
,
''
)));
return
;
...
...
Please
register
or
login
to post a comment