Skip to content

Jesonhu/js-utils-event-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS 事件监听派发类(JS Event dispacher build with TS)

Version

en|中文文档

API

public

name type description
addEventListener method add event listener
removeListener method remove event listener
dispatchEvent method dispacth an event listener
dispatchEventWith method dispach an event with some event params
once method create once event listener
hasEventListener method check event dispacth target is has expected event
notifyListener method core event dispach handler

private

name type description
$addListener method add event listener
$insertEventBin method add the event to event queue
$removeEventBin method remove the event from event queue

参考资料