跳转到主要内容

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.