function setCookie(name,value,time){
function setCate(name,value,time){
var oDate = 新日期();
oDate.setDate(oDate.getDate() 時間);
document.cookie = name "= value ";expires=" oDate;
}
function getCookie(name){
var arr = document.cookie.split("; ");
for(var i=0; i
var arr2 = arr[i].split("=");
if(arr2[0] == 名){
return arr2[1];
}
}
回傳「」;
}
function removeCookie(name){
setCookie(name,"",0)