//去除空格
String
{
return this
}
//設置Cookie
function setCookie(c_name
{
var exdate=new Date()
exdate
okie = c_name +
((expiredays==null) ?
}
//按名字讀取Cookie
function getCookie(c_name)
{
if (okie
{
var m_car=okie
var value=
for (i =
{
if(c_name
{
value = (m_car[i]
}
}
}
return value;
}
From:http://tw.wingwit.com/Article/program/ASP/201311/21789.html