javascript Cookie - 쿠키 객체
쿠키 메서드 // 쿠키 객체 var Cookies = { create: function(key, value, expires) { var date = new Date(); date.setTime(date.getTime() + (expires * 24 * 60 * 60 * 1000)); var expires = "; expires=" + date.toGMTString(); var path = "; path=/" var domain = "; domain=" + document.domain; document.cookie = key + "=" + value + expires + domain + path; }, read: function(key) { var keyString = key + "="; var cooki..
웹개발/Javascript
2013. 5. 29. 11:07