我将通过对代码求值来执行动作;如果代码可能失败,那么我将会捕获那个错误。
I'll run that action by evaluating the code; if the code should fail, then I will catch that error.
无论使用冒泡阶段还是捕获阶段,默认动作总是在所有的传播完成后执行。
Whether the bubbling or capture phase is used, the default action always happens after all event propagation is finished.
例如,设备代理可能会在捕获或接收数据时发布事件消息,指示已经触发了动作传感器或已经读取了RFID标签。
For example, a device agent might publish an event message whenever it captures or receives data indicating a motion sensor has been triggered or that an RFID tag has been read.
应用推荐