微信小程序如何阻止事件冒泡
由于微信小程序中不能通过js阻止事件冒泡;
如何在微信小程序中实现事件冒泡。
将事件的bind 改成 catch
bind 是阻止不了冒泡的
例如 bindtap 改成 catchtap
catchtap 执行事件冒泡 event.stopPropagation();
微信小程序如何阻止事件冒泡
由于微信小程序中不能通过js阻止事件冒泡;
如何在微信小程序中实现事件冒泡。
将事件的bind 改成 catch
bind 是阻止不了冒泡的
例如 bindtap 改成 catchtap
catchtap 执行事件冒泡 event.stopPropagation();