创建和配置标记处理函数。
见事件处理函数要求。
对于标准事件,事件处理函数是预定义的。
一个标签处理函数类。
清单8说明这些事件处理函数的结构。
Listing 8 demonstrates the structure of these event-handlers.
留意所有神奇的数据结构及数据结构处理函数。
Keep an eye out for all the amazing data structures and data structure processing functions.
清单1展示了定制标记的处理函数是什么样的。
Listing 1 shows what the handler of the custom tag should look like.
事件处理函数将被阻塞直到UI线程能够处理它。
The event handler will be blocked until the UI thread is able to process it.
清单2展示如何使用click处理函数提交表单。
Listing 2 shows how to submit a form using the click handler.
datetime包含有用的日期和时间处理函数。
Datetime contains useful date and time manipulation functions.
这个例子说明可以像处理其他变量一样处理函数。
This example shows that I can treat a function just as I treat any other variable.
在事件处理函数中可以使用以下语法调用动作
Actions can be invoked inside event-handlers using the following syntax
清单6显示的是小部件样例的事件处理函数和回调函数。
Listing 6 shows the event handlers and the callback function of the sample widget.
应用程序的退出处理函数或清理例程可以调用这个例程。
This routine can be called as a part of the application's exit handler or clean up routines.
然后可以使用Dojo为按钮点击关联一个事件处理函数。
You then use Dojo to associate an event handler for when the button is clicked.
每个事件有一个处理函数,即在发生此事件时执行的代码块。
Every event has a handler which is a block of code that is executed in response to the occurrence of the event.
清单1显示了如何使用submit处理函数提交一个表单。
Listing 1 shows how to submit a form using the submit handler.
将Comet事件传递给处理函数机制的代码如清单5所示。
The code to pass Comet events to such a handler mechanism may look like Listing 5.
注意,这些元素上设置了与鼠标操作相关的三个事件处理函数。
Notice that these elements have three different mouse action-related event handlers.
在刚启动时调用这个事件处理函数,将初始屏幕内容设置为可见。
This event handler is called at the very beginning so that the initial screen contents can be set to be viewed.
一旦字符串处理函数失败,就把目标缓冲区设成NULL。
事件处理函数名必须与定义文件中的名称匹配,而此名称由用户定义。
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.
mysig_handler是在接收到信号时要调用的处理函数。
mysig_handler is the handler function that will be invoked at the time of signal delivery.
尽管以上两种选择都是有效的,但submit处理函数更为常用些。
Although both of the above options are valid, the submit handler is more commonly used.
这可能包括事件关联函数、事件处理函数、错误方法和计时器方法。
This might include the event hooks, the event handler, the error methods, and the timer methods.
注意,条件函数并不是异步信号安全的,因此不能在信号处理函数中调用。
Note that condition functions are not asynchronously signal-safe and should not be called from a signal handler.
现在的中断处理函数的返回代码是一个 irqreturn_t类型。
The interrupt handler function now has a return code of type irqreturn_t.
例如,onmousemove等鼠标事件处理函数常常会产生大量调用。
Hover event handlers such as onmousemove often produce a large number of events.
在jQuery中使用事件处理函数时,上下文变量是指触发事件的元素。
When using event handlers in jQuery, the context variable refers to the element that fired the event.
事件处理函数接受一个ElapsedEventArgs类型的参数。
The event handler receives an argument of type ElapsedEventArgs.
应用推荐