In the WeChat applet, when the two contained views use the bindtap function to bind the click event, a bubbling event will occur (that is, when the internal event is clicked, the external event will be triggered at the same time), if we want to prevent bubbling When an event occurs, the bindtap that will be included inside should be a catchtap. Please see the specific examples below.
How to prevent bubbling events in the WeChat applet?
Guess you like
Origin blog.csdn.net/weixin_44266024/article/details/128715236
Recommended
Ranking