阻止事件冒泡

it2023-03-20  74

组织事件冒泡的两种方法:

1、e.stopPropagation() 优先使用
2、e.cancelBubble = true
最新回复(0)