You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.
本文档已迁移至 https://weex-project.io/cn/references/common-event.html , 此处不再维护,谢谢。
通用事件
Click 事件
如果某个组件绑定了
click
事件,那么该事件会在用户点击时触发。注解:
input
组件 和switch
组件目前并不支持 click 事件,请使用change
或input
事件代替。事件对象
type
:click
;target
: 触发事件的目标组件;timestamp
: 事件触发的时间戳。Appear 事件
如果一个
appear
事件被绑定到某个滚动区内的组件上,当组件可见时该事件触发。事件对象
type
:appear
;target
: 触发事件的目标组件;timestamp
: 事件触发的时间戳;direction
: 屏幕滚动时的滚动方向,up
或down
。Disappear 事件
如果一个
disappear
事件被绑定到某个滚动区内的组件上,该事件将在组件滚动出视口,并从你的视线中消失时触发。事件对象
type
:disappear
;target
: 触发事件的目标组件;timestamp
: 事件触发的时间戳;direction
: 屏幕滚动时的滚动方向,up
或down
。The text was updated successfully, but these errors were encountered: