cookie (1) 썸네일형 리스트형 blazor Cookie window.methods = { CreateCookie: function (name, value, days) { var expires; if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); expires = "; expires=" + date.toGMTString(); } else { expires = ""; } document.cookie = name + "=" + value + expires + "; path=/"; } } @page "/" @inject IJSRuntime JSRuntime @code { private async void CreateCookie(string name.. 이전 1 다음