摘要: 1 function getCookie(name) { 2 var arr = document.cookie.match(new RegExp("(^| )userInfo=([^;]*)(;|$)")); 3 if (arr != null) { 4 arr = unescape(arr[2]).split("&"); 5 for (x in arr) 6 if (arr[x].split("=")[0] == name) { 7 return arr[x].split("=")[1... 阅读全文
posted @ 2012-12-27 17:48 CoderNet 阅读(184) 评论(0) 推荐(0) 编辑