如图所示
代码:function GetCookie(sName){var aCookie = document.cookie.split("; ");for (var i=0; i < aCookie.length; i++){var aCrumb = aCookie[i].split("=");if (sName == aCrumb[0])return unescape(aCrumb[1]);}return null;}
在地址栏输入 javascript:document.write(document.cookie);