FrontEnd (65) 썸네일형 리스트형 [Vanilla JavaScript]폴더구조 및 검색폼 index.html View.jsconst tag = '[View]' export default { init(el) { if (!el) throw el console.log(el) -----> this.el = el return this }, on(event, handler) { this.el.addEventListener(event, handler) return this }, emit(event, data) { const evt = new CustomEvent(event, { detail: data }) this.el.dispatchEvent(evt) return this }, hide() { this.el.style.display = 'none' return this }, show() { this.e.. 이전 1 ··· 6 7 8 9 다음