event life cycle
2016-06-06 16:30:27 0 举报
事件生命周期是指一个事件从触发到结束所经历的一系列阶段。在JavaScript中,事件生命周期分为三个阶段:事件捕获阶段、处于目标阶段和事件冒泡阶段。当一个事件触发时,首先会执行事件捕获阶段,然后是处于目标阶段,最后是事件冒泡阶段。事件处理程序会在这三个阶段中被调用。此外,事件对象也会随着事件在这三个阶段中传递。事件对象的target属性指向事件当前所处的目标元素。
作者其他创作
大纲/内容
notification is one kind ofaction's operation
Media
Trigger
use trigger to show the status of items
Item
Action
Event
event is created once the status of trigger is changed
Notification
action is executed if some new event meet it's condition
media is the channel where notification reach to it's audience
收藏
0 条评论
下一页