mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 04:52:14 +09:00
Add the getCookie function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8490 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2810dffb8c
commit
f9b695f734
1 changed files with 5 additions and 0 deletions
|
|
@ -902,6 +902,11 @@ function setCookie(name, value, expire, path) {
|
||||||
document.cookie = s_cookie;
|
document.cookie = s_cookie;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getCookie(name) {
|
||||||
|
var match = document.cookie.match(new RegExp(name+'=(.*?);'));
|
||||||
|
if(match) return unescape(match[1]);
|
||||||
|
}
|
||||||
|
|
||||||
function is_def(v) {
|
function is_def(v) {
|
||||||
return (typeof(v)!='undefined');
|
return (typeof(v)!='undefined');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue