有两种方法可以 处理事件 ( handle events ):简短方法(short way),W3C方法。每一种方法都有两面,两种方法都允许你一个元素发生某个事件的时候执行特定的功能。
基于1个网页-相关网页
The In-basket widget, as a receiver, can handle events sent by other widgets.
In-basket 小部件作为接收者,可以处理其他小部件发送的事件。
Each class that extends page might also contain methods that handle events on the page.
扩展Page的每个类还可以包含处理页面事件的方法。
Having controllers handle events themselves instead of the events has also been discussed.
我们也已经对让控制器自己来处理事件而不是由事件本身处理进行了讨论。
应用推荐