js操作Cookie
摘要:
//写入Cookiefunction setCookie(c_name,value,expiredays){var exdate=new Date()exdate.setDate(exdate.getDate()+expiredays)document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toGMTString())}//根据Cookie名取Cookiefunction getCookie(c_name){if 阅读全文
posted @ 2012-08-15 10:18 曹永思 阅读(162) 评论(0) 推荐(0) 编辑