JS写的Cookie类[3]

[入库:2005年8月18日] [更新:2007年3月25日]

本文简介:选择自 applebbs 的 blog

08080"> 23        var _str,_ars,_mars,_marslength,timeout,i,key; 
 24        for(key in this._cookie){ 
 25            if(!this._cookie[key])return
 26            _str=[]; 
 27            _mars=cookieclass._cookie[key]; 
 28            _marslength=_mars.length; 
 29            for(i=0;i<_marslength;i++)_str[_str.length]=escape(_mars[i]); 
 30            document.cookie=key+"="+_mars["timeout"]+(_str.length>0?",":"")+_str+(_mars["timeout"]==0?"":";expires="+new

本文关键:JS写的Cookie类
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top