35

JavaScript事件机制——记一次认真准备的技术分享

 5 years ago
source link: https://juejin.im/post/5b29cdaa518825749d2d557a
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
先问几个问题,你是否能快速闪过答案? 自下而上(冒泡)事件怎么写,自上而下(捕获)又是怎么写? 捕获型和冒泡型同时存在,谁生效? jquery的on或bind是冒泡,还是捕获? 冒泡能够阻止,那捕获能够阻止吗? stopPropagation 和 stopI

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK