If I do something after loading the DOM, the function still executes:
However, if the 'myEvent' event has already been removed:$ (document) .on ('myEvent', fn)
Is there a jQuery solution , for which I have my own Event Representative Removed "late" event handler for past events Is received?
Actually I believe that you do not need it because it should point out the bad design decision .
In addition to this, it is OK that the ready
event callback has been executed, even if the document has already indicated that it is ready Because this event is once a life-cycle per page .
Just think that the click
event will allow you to do what you are requesting but before the event handler is added, the user clicked the target element more than once ? Want to invite event handler twice or more?
Comments
Post a Comment