一 绑定事件
$('input').bind('mouseout,mouseover',function(){
$('div').html(function (index,value){
return value + '1';
})
})
//删除绑定事件
$('input').unbind('click')
二 简写事件
$('input').keydown(function(e){
alert(e.keyCode)
})
三 复合事件
//鼠标移入移出触发事件
$(‘div’).hover(function() {
$(this).css(...);
},function() {
$(this).css(...);
})