在JavaScript中如何读写cookie? download:http://zpcity.com/arli\forums\inc\c_script/global.jsseeof:function SetCookie (name, value) {.... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 function setCookie (name, value, expires) { document.cookie = name + "=" + escape(value) + "; expires=" + expires.toGMTString() + "; path=/";}function getCookie(name) { var search; search = name + "=" offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length ; end = document.cookie.indexOf(";", offset) ; if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(offset, end)); } else return "";}function deleteCookie(name) { var expdate = new Date(); expdate.setTime(expdate.getTime() - (86400 * 1000 * 1)); setCookie(name, "", expdate);}看不懂在问我! mvc3 里面如何打开指定文件夹中的一个html文件 高手请进! datawindow.net 2.0 OLE方式连接ORACLE数据库的问题 求免费空间 无法创建Web项目 用asp中的Fileupload控件怎么实现百度文库的那种上传效果啊? try catch结构的问题,大家帮忙 谁有能在.net1.1下使用的时间输入控件?? 專業問題,高手解答 access怎么插入日期函数 在win2003下如何用.net框架1.0下执行WEB程序 求在asp.net中取消打印属性的页眉、页脚的代码!!
function setCookie (name, value, expires) { document.cookie = name + "=" + escape(value) +
"; expires=" + expires.toGMTString() + "; path=/";
}function getCookie(name) { var search; search = name + "="
offset = document.cookie.indexOf(search)
if (offset != -1) {
offset += search.length ;
end = document.cookie.indexOf(";", offset) ;
if (end == -1)
end = document.cookie.length;
return unescape(document.cookie.substring(offset, end));
}
else
return "";
}function deleteCookie(name) { var expdate = new Date();
expdate.setTime(expdate.getTime() - (86400 * 1000 * 1));
setCookie(name, "", expdate);
}看不懂在问我!