javascript 获取cookies function getCookie(name)//取cookies函数 { var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)")); if (arr != null) return unescape(arr[2]); return null;
}
var xx = getCookie("user_id");
javascript 获取cookies function getCookie(name)//取cookies函数 { var arr = document.cookie.match(new RegExp("(^| )" + name + "=([^;]*)(;|$)")); if (arr != null) return unescape(arr[2]); return null;
}
var xx = getCookie("user_id");