计时器事件函数没有鼠标事件函数那么复杂。
Your timer event functions don't do much more than your cursor event functions.
客户端必须继承接口,并实现它需要处理事件的事件函数。
The client has to inherit that interface and implement an event function if it wants to handle that event.
每个事件函数都包含两种形式:一个没有任何参数,一个包含一个函数作为参数。
Each event function contains two forms: one without any arguments, and one that contains a function as an argument.
这里有一些不同的事件函数供你来追踪游戏逻辑,动画和相机的位置等。
When you're keeping track of game logic and interactions, animations, camera positions, etc., there are a few different events you can use.
这是首选的,因为很容易注册(和注销)事件函数,而且可以将浏览器处理的多个已注册函数链接起来。
This is your first choice because it's easy to register (and unregister) event functions, and chaining through multiple registered functions is handled by the browsers.
动作小部件的实现中必须包含一些特定的事件和函数,以便它能使用容器工具栏小部件。
The implementation of the action widget must include some specific events and functions for it to work with the container toolbar widget.
该事件是存储搜索函数的一个新增强的特性。
This event is an enhanced feature of the stored search function.
这个函数返回该事件对象的句柄。
事件方法信息是由函数选择器提供的。
Event method information is provided by the Function Selector.
浏览器如何处理这些项,如果将事件处理程序、函数和样式映射到该文本标记?
How does the browser handle these items and how does it map event handlers, functions, and styles to that textual markup?
此函数不对事件的当前实例计数。
This function does not count the current instance of the event.
指向要调用的回调函数的指针(对于一种或多种事件类型)——为每种特定的事件注册一个回调函数,然后将在事件发生时调用这些函数。
Pointer to the callback function to be invoked (for one or more event Types) — for each specific event, register a callback function, and then these functions are called when the event occurs.
事件发生时调用的回调函数可以在捕获事件处进行编写。
The callback functions that are called when an event occurs can be written in the same spot where you capture the event.
请记住,actiontransitionfunctions表是稀疏的;为每个状态下期望出现的事件定义函数,其他单元格都空着。
Remember that the actionTransitionFunctions table is sparse; you defined functions for the events you expect in each state, and left all other cells empty.
要构造示例概要清单,从事件处理函数中调用queryandupdate函数。
To build the example overview list, the queryAndUpdate function is called from the event handler functions.
每次readystate变化时,readystatechange事件就触发,由onreadystatechange属性指定的事件处理函数就被调用。
Each time the readystate changes, the readystatechange event fires and the handler function attached via the onreadystatechange property is called.
编写处理onclick事件的函数,见清单8。
Write the function for handling the onclick event, shown in Listing 8.
例如,onmousemove等鼠标事件处理函数常常会产生大量调用。
Hover event handlers such as onmousemove often produce a large number of events.
事件处理函数停止表单提交,并使用在dojo.xhrPost 函数中使用Ajax。
The handler stops form submission and uses Ajax instead through the dojo.xhrPost function.
处理常见事件就像调用函数(比方说click 、submit或mouseover)和为其传递事件处理函数一样简单。
Handling common events is as simple as calling a function like click , submit , or mouseover and passing it an event handler function.
这个事件处理函数启动一个新的服务器,通过在它上面执行一系列命令来配置它。
The event handler starts a new server and configures it by executing a sequence of commands on it.
这可能包括事件关联函数、事件处理函数、错误方法和计时器方法。
This might include the event hooks, the event handler, the error methods, and the timer methods.
清单8说明这些事件处理函数的结构。
Listing 8 demonstrates the structure of these event-handlers.
清单6显示的是小部件样例的事件处理函数和回调函数。
Listing 6 shows the event handlers and the callback function of the sample widget.
每个事件有一个处理函数,即在发生此事件时执行的代码块。
Every event has a handler which is a block of code that is executed in response to the occurrence of the event.
注意,这些元素上设置了与鼠标操作相关的三个事件处理函数。
Notice that these elements have three different mouse action-related event handlers.
事件处理函数将被阻塞直到UI线程能够处理它。
The event handler will be blocked until the UI thread is able to process it.
在刚启动时调用这个事件处理函数,将初始屏幕内容设置为可见。
This event handler is called at the very beginning so that the initial screen contents can be set to be viewed.
事件处理函数名必须与定义文件中的名称匹配,而此名称由用户定义。
The name of the event handler must match the name declared in the definition file in which the name is user definable during definition time.
事件处理函数名必须与定义文件中的名称匹配,而此名称由用户定义。
The name of the event handler must match the name declared in the definition file in which the name is user definable during definition time.
应用推荐