쿠키 조회1 Javascript SetCookie GetCookie function getCookie(key) { const arg = key + '='; const cookieLength = document.cookie.length; let i = 0; while (i cookieLength) { const j = i + arg.length; if (document.cookie.substring(i, j) === arg) { let endString = document.cookie.indexOf(';', j); if (endString === -1) { endString = document.cookie.length; } return decodeURIComponent(document.cookie.subs.. 2022. 1. 12. 이전 1 다음 반응형