본문으로 건너뛰기

eventRemove

Description

HTML 요소에서 이벤트 핸들러를 제거합니다.

eventRemove: (id: string) => void

Parameters

  • id - (required) string - 이벤트 핸들러의 id

Example

var eventId = scheduler.event("divId", "click", function(e){
do_something();
});

scheduler.eventRemove(eventId);

Details

event를 통해 추가된 모든 이벤트 리스너는 destructor가 실행될 때 자동으로 제거됩니다.

Change log

  • 버전 4.4에서 추가됨
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.