微信小程序事件

微信小程序事件
1.什么是事件
2.事件类别
3.事件冒泡
4.事件绑定
5.事件对象详解
笔记:
1.事件是一种用户的行为,是一种通讯方式。
2.事件类别:
    点击事件:tap
    长按事件:longtap
    触摸事件:touchstart touchend touchmove touchcancel
    其他:submit input
3.事件的冒泡
    冒泡事件  
        点击事件:tap
        长按事件:longtap
        触摸事件:touchstart touchend touchmove touchcancel
    非冒泡事件
4.事件绑定    明确bind和catch的区别
    bind绑定
    catch绑定

5.事件对象详解
    类型type
    时间戳timesStamp
    事件源组件target
    当前组件currentTarget
    触摸点数touches

posted @ 2017-07-24 17:03  怪咖在骚动  阅读(141)  评论(0编辑  收藏  举报