Home  >  Article  >  Web Front-end  >  List of all events supported by JQuery's ON() method_jquery

List of all events supported by JQuery's ON() method_jquery

WBOY
WBOYOriginal
2016-05-16 16:12:08995browse

Since jQuery added the on() and off() methods, I will no longer use other basic event-related operations such as $('xxx').click(function(){}); .

However, jQuery’s api does not say how many events can be bound to on. I accidentally discovered these while looking at the source code of jQuery 1.8.3 today. I am very happy~

The events supported in on are listed below and shared with everyone:

Copy code The code is as follows:

blur
focus
focusin
focusout
load
resize
scroll
unload
click
dblclick
mousedown
mouseup
mousemove
mouseover
mouseout
mouseenter
mouseleave
change
select
submit
keydown
keypress
keyup
error
contextmenu
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn