创建和配置标记处理函数。
见事件处理函数要求。
对于标准事件,事件处理函数是预定义的。
一个标签处理函数类。
事件由名称标识并定义相应的事件处理函数。
An event is identified by a name and the handler of the event and is defined along with the event.
留意所有神奇的数据结构及数据结构处理函数。
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.
清单8说明这些事件处理函数的结构。
Listing 8 demonstrates the structure of these event-handlers.
清单2展示如何使用click处理函数提交表单。
Listing 2 shows how to submit a form using the click handler.
datetime包含有用的日期和时间处理函数。
Datetime contains useful date and time manipulation functions.
在事件处理函数中可以使用以下语法调用动作
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.
这个例子说明可以像处理其他变量一样处理函数。
This example shows that I can treat a function just as I treat any other variable.
事件处理函数将被阻塞直到UI线程能够处理它。
The event handler will be blocked until the UI thread is able to process it.
然后可以使用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.
首先,您再次使用Dojo来包装表单上按钮点击处理函数。
First, you once again use Dojo to wire up an event handler to a button click on the form.
清单10说明处理函数返回值的代码应该是什么样的。
Listing 10 shows what should the code to handle this situation should look like.
注意,这些元素上设置了与鼠标操作相关的三个事件处理函数。
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.
注意,条件函数并不是异步信号安全的,因此不能在信号处理函数中调用。
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.
这可能包括事件关联函数、事件处理函数、错误方法和计时器方法。
This might include the event hooks, the event handler, the error methods, and the timer methods.
这个事件处理函数启动一个新的服务器,通过在它上面执行一系列命令来配置它。
The event handler starts a new server and configures it by executing a sequence of commands on it.
这个事件处理函数启动一个新的服务器,通过在它上面执行一系列命令来配置它。
The event handler starts a new server and configures it by executing a sequence of commands on it.
应用推荐