모듈
모듈 내보내기(export)
export function on(
el : Element|Document,
type : string,
handler : (e:Event)=>void,
is_capture : boolean = false
):void {
el.addEventListener(type, handler, is_capture);
}
export function off(
el : Element|Document,
type : string,
handler : (e:Event)=>void,
is_capture : boolean = false
):void {
el.removeEventListener(type, handler, is_capture);
}모듈 불러오기(import)
default 모듈 내보내기
default 모듈 불러오기
실습
참고
Last updated