阻止js事件冒泡的例子(cancelBubble 、stopPropagation)




 阻止JS事件冒泡传递(cancelBubble 、stopPropagation)




This is parent1 div.

This is child1.

This is parent1 div.


This is parent2 div.

This is child2. Will bubble.

This is parent2 div.


你可能感兴趣的:(javaScript)