小程序经常会出现此场景,外层点击进入详情,内层的按钮也有操作,这时点击内层的事件既会触发内层事件也会触发外层的点击事件。所以外层点击事件使用bindtap,内层点击将bindtap换为catchtap即可
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!