摘要:
function getCookie(cookieName){ var arg = cookieName + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { var endstr = document.cookie.indexOf(";", j); if (endstr == -1) { 阅读全文