摘要:
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... 阅读全文