84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
觉得 delegation 用法不靠谱啊, 因为 delegation 当中屏蔽子元素到父元素的事件是通过 stopPropgation 实现的, 这样, 模块向 window root 节点的冒泡也消失了. 然后, 比如我写了提示菜单, 就不能监听全局事件来关闭自己了, 因为有常经理里为了避免事件冒泡触发多余动作而强制关闭事件冒泡.
认证0级讲师
认证0级讲师