标签:function cookie value div null code turn log mat
// 获取cookie的值 function getCookie(name) { var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)"); if(arr=document.cookie.match(reg)) return unescape(arr[2]); else return null; } // 设置cookie的值 function setCookie(name,value){ document.cookie = name + "=" + value; }
标签:function cookie value div null code turn log mat
原文地址:http://www.cnblogs.com/jacko/p/6034153.html