2019-04-11 代理模式

bind(,,,function(){} ) 绑定多个事件

bind 自定义绑定事件

事件冒泡 点击事件会一级一级往上传递 

阻止冒泡 event.stopPropagation()  return flase

阻止右键菜单$(document).contextmenu(function(event0){})

阻止默认行为 event.preventDefault                                                                                                                                                                                                                                                                                                                                                                            会影响到子标签$('').delegate( 'li' , )

取消事件委托 undelegate  代理模式 

节点控制

confirm 有两个按钮的警告框 可以确认或取消

整屏滚动

你可能感兴趣的:(2019-04-11 代理模式)