Skip to content

事件系统

司徒正美 edited this page Oct 18, 2017 · 1 revision

there are a few events which can be built synthetically based on other events, specifically:

change is almost often synthetic, composed of events like blur, focus, input, selectionchange, etc. mouseenter and mouseleave are calculated using mouseout and mouseover events beforeinput is pretty complicated, lots going on there select events depend on a few key and mouse events along with selectionchange Other than that, most other events should correspond to browser events that you can listen for. You could also potentially listen for a dependent event for these synthetic events (for example, listen to input or keydown for change events