html | javascript (28) 썸네일형 리스트형 html javascript - canvas size 화면에 꽉 채우기 html javascript - canvas size 화면에 맞추기 body와 canvas 사이의 기본 설정 값 : 16 (margin left, right), 21 (margin top, bottom) html javascript - date string format function getDateStr00(date) { return date.toLocaleString()}function getDateStr00_01(date) { return date.toLocaleDateString()}function getDateStr00_02(date) { return date.toLocaleTimeString()}function getDateStr01(date) { const y = date.getFullYear() const m = date.getMonth() + 1 const d = date.getDate() const h = date.getHours() const mm = date.getMinutes() const s = date.getSeconds() .. html javascript - 코드로 string 다운로드 저장 function saveString(fileName, str) { const link = document.createElement('a') const file = new Blob([str], {type:'text/plain'}) link.href = URL.createObjectURL(file) link.download = `${fileName}.txt` link.click() URL.revokeObjectURL(link.href)} 이전 1 2 3 4 다음