event trigger

js event summary:

  • Attribute events need to be on, jquery binding events do not need on (such as click, change, etc.);
    js registration events addEventListener() do not add on, others add on
  • First trigger the property binding event, and then trigger the js binding event;
  • Attribute events of elements, following bubbling;
  • When jquery clones an element, if the clone() parameter passes true, it will clone the js event bound to the element. If it is not passed, only the element and its element attribute events will be cloned.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325245459&siteId=291194637