微信小程序事件

事件的类别分为几种:

       点击事件:tap

       长按事件:longtap

       触摸事件:touchstart; touchend;touchcancel;touchmove

       其他:input;submit....

其中前三类是冒泡事件,其他的称为非冒泡事件

其中点击事件用法是bindtap=“”

想要不冒泡的话可以使用catchtap事件catchtap=“”

posted @ 2021-10-29 09:59  Pavetr  阅读(66)  评论(0)    收藏  举报