JAVA WEB开发:Javascript Cookie管理程序
function setCookie(name,value,expiry,path,domain,secure){
var nameString = name + "= " + value;
var expiryString = (expiry == null) ? " " : " ;
expires = "+ expiry.toGMTString();
var pathString = (path == null) ? " " : " ;path = "+ path;
var domainString = (path == null) ? " " : " ;domain = "+ domain;
var secureString = (secure) ? ";secure " : " ";
document.cookie = nameString + expiryString + pathString +
domainString + secureString;
}
转赛迪
------解决方案--------------------楼主 用心良苦 普及基础知识
------解决方案--------------------en ,好!
------解决方案--------------------楼主在csdn为知识推广做了很多工作呀。..
感谢一下。...
------解决方案--------------------顶一个
------解决方案--------------------up
------解决方案--------------------不错不错
------解决方案--------------------顶
------解决方案--------------------顶之
------解决方案-------------------- 顶
------解决方案--------------------up
------解决方案--------------------学习!