Event, event function (event method)
JS: onXXX
onclick ();
write
jquery: No ON
the Click ();
READY () therein;
ready(function(){
$(选择器).事件类型(function(){
...
});
});
Keyboard events:
keyDown (): a key top-down process
KeyPress (): key is pressed to the bottom
keyUp (): the key is released form events
Focus (): Get a focus
Blur (): loses focus
color values: Use English words or # 6 hex
a # 000000:. black #ffffff: white
. b If the six pairwise the same, you could say 3, # aabbcc can be written #abc
composite event:
hover (f1, f2): switch between mouseOver () and mouseOut ()
toggle(f1,f2,f3,...,fn):版本问题(jquery1.9以前支持)
多个click()事件,toggle()还有其他含义(隐藏与显示)
Which speed: can be a number (milliseconds), can also be a word (fast normal slow, pay attention to double quotes)
summary display problems:
show: show () fadeIn () slideDown ();
hidden: hide () fadeOut () slideUp ( );