If more events occur before the event handler returns, browsers enqueue them until the event handler does return, and then process the queued events in order, one at a time, synchronously.
如果在事件处理器返回之前发生了更多的事件,浏览器就将它们放在队列中;当事件处理器返回时,依次同步地处理排队的事件,每次一个。
In order to do this, you must add an onChange event handler to the customer widget, which modifies the order widgets query.
为了达到这个目的,您必须向客户小部件添加onchange事件处理程序,该程序将修改订单小部件查询。
We'll see below that it is useful to define a scope as a direct child of an event handler in order to have scoped variables that are local to the event handler instance.
我们将在下面了解到,为了获得事件处理程序实例的已确定范围的局部变量,可以将活动的范围定义为事件处理程序的直接子项。
In this example, if the order process takes longer than a specific amount of time, an event handler is triggered, that can take specific actions.
在此示例中,如果订单流程的处理时间超过了特定的时间值,将触发一个事件处理程序,然后可以执行特定的操作。
Only when the event handler has finished its business logic, it updates the global variable result in order to return the result to MainScope.
只有事件处理程序完成了其业务逻辑后,它才会更新全局变量result,以将结果返回到MainScope。
Only when the event handler has finished its business logic, it updates the global variable result in order to return the result to MainScope.
只有事件处理程序完成了其业务逻辑后,它才会更新全局变量result,以将结果返回到MainScope。
应用推荐