setcookie1 Javascript SetCookie GetCookie function GetCookie(key) { var arg = key + "="; var argLength = arg.length; var cookieLength = document.cookie.length; var i = 0; var j = 0; while (i 2) ? argv[2] : null; var domain = (argc > 3) ? argv[3] : null; var path = (argc > 4) ? argv[4] : '/'; var secure = (argc > 5) ? argv[5] : false; if (expires != null) { var date = new Date(); date.setTime(date.getTime() + (expires * 24 * 60 * 60 * 10.. 2022. 1. 12. 이전 1 다음 반응형