如果用户单击元素中突出显示的“ this ”,一个事件就会沿着图1中红色的路线移动,这代表捕获阶段。
If a user clicks on the emphasized "this" in the element, an event will begin to travel along the red path in Figure 1; this represents the capture phase.
只要在事件处理过程或响应阶段发生未被捕获的异常,void respond (RuntimeException, RequestCycle)都会被调用以便生成合适的异常响应。
Void respond (RuntimeException, RequestCycle) is called whenever an uncaught exception occurs during the event handling or response phase so that an appropriate exception response can be generated.
当一个事件发生时(比如单击或者鼠标划过),捕获阶段就开始了。
When an event occurs (a click or a mouse-over, for example) the capture phase begins.
应用推荐