javascript 操作cookie类
摘要:
String.prototype.Trim = function() {return this.replace(/^\s+/g,"").replace(/\s+$/g,""); } function JSCookie() {this.GetCookie = function(key) { var cookie = document.cookie; var cookieArray = cookie.split(';'); var getvalue = "";for(var i = 0;icookieArray.length;i++) {if(cookieArray[i].Trim().subs 阅读全文
posted @ 2010-12-17 17:34 bicabo 阅读(370) 评论(0) 推荐(0) 编辑