import{eventUtils}from'toolkit-use/dist/dom/index.esm'// Add event listenereventUtils.addHandler(element,type,handler)// Remove event listenereventUtils.removeHandler(element,type,handler)// Get compatibility eventeventUtils.getEvent(event)// Get actual targeteventUtils.getTarget(event)// Prevent default eventeventUtils.preventDefault(event)// Stop event propagationeventUtils.stopPropagation(event)// Get related targeteventUtils.getRelatedTarget(event)// Get button codeeventUtils.getButton(event)// Get wheel deltaeventUtils.getWheelDelta(event)// Get char codeeventUtils.getCharCode(event)
Top comments (0)