The scope in which to execute the handler function.
scope {Object} : 事件处理函数执行时所在的作用域。
The query is executed with a success handler and an error handler function.
通过成功处理程序和错误处理程序函数执行查询。
This will show how to pass additional parameters to your handler function.
例子将示范如何给你的函数指针传递附加参数。
The special method default is marked as a CherryPy handler function by the @cherrypy.expose decorator.
default这个特殊方法使用 @cherrypy.expose 修饰符标记为 CherryPy处理程序函数。
To build the example overview list, the queryAndUpdate function is called from the event handler functions.
要构造示例概要清单,从事件处理函数中调用queryandupdate函数。
The INIT_WORK macro provides for the necessary initialization and setting of the handler function (passed by the user).
宏 INIT_WORK提供必需的初始化数据以及处理程序函数的配置(由用户传递进来)。
For example, you can assign a click handler function to each element in the jQuery object by calling the click function.
比方说,您可以通过调用click函数把click处理函数指定给jQuery对象中的所有元素。
First, look at your work structure and the handler function that you'll use to implement the bottom half (see Listing 9).
首先,看一下将用于实现bottomhalf 的任务结构体和处理程序函数(参见清单9)。
As the work_struct indicates the handler function to use, you can use the work queue to queue work for a variety of handlers.
由于work_struct中指出了要采用的处理程序函数,因此可以利用工作队列来为不同的处理程序进行任务排队。
The onclick handler function named addToCart is responsible for updating the state of the cart through an Ajax call (see Listing 1).
名为addtocart的onclick处理函数负责通过Ajax调用来更新购物车的状态(请参阅清单1)。
Handling common events is as simple as calling a function like click , submit , or mouseover and passing it an event handler function.
处理常见事件就像调用函数(比方说click 、submit或mouseover)和为其传递事件处理函数一样简单。
Each time the readystate changes, the readystatechange event fires and the handler function attached via the onreadystatechange property is called.
每次readystate变化时,readystatechange事件就触发,由onreadystatechange属性指定的事件处理函数就被调用。
All the customized class has to do is define a mapping, NS_TO_HANDLER_MAPPING, which for each namespace defines another mapping from SOAP body element name to a handler function.
定制的类所要做的只是定义一个映射ns TO HANDLER MAPPING,它为每个名称空间定义另一个从SOAP主体元素名到处理程序函数的映射。
The function is similar to the JAX-RPC Handler we coded in Listing 1 of Part 1 of this series.
此功能与我们在本系列的第1部分的清单1中编写的JAX - RPC处理程序类似。
The handler we've just created is a skeleton, so we need to add some additional code that implements the function we want to provide.
我们刚刚创建的处理程序只是一个框架,因此需要添加一些额外的代码,以实现我们希望提供的功能。
Once the function returns a value outside that range, either the value is passed to a different handler or the state machine exits after calling a do-nothing end-state handler.
一旦函数返回了超出范围的值,那么该值将传送到另一个处理程序,或者状态机在调用了一个什么也不做的终态处理程序后就退出。
You implemented your state table as a common handler for all events, plus a function array for all actions and transitions.
将状态表实现为适用于所有事件的通用处理函数,并为所有操作和转换提供一个函数数组。
Or, you call some function that was in the middle of the manipulation of the global data structure and you call the same function from the signal handler.
或者,调用了正在处理全局数据结构的某个函数,而在信号处理器中又调用了同一个函数。
EINTR — the function was interrupted by a signal, which was caught by a signal handler in the program, and the signal handler returned normally.
程序中的信号处理程序捕获到函数的执行被某个信号中断,信号处理程序然后按正常方式返回。
Then Approach 2 is introduced to build a RESTful service for ALE interface by implementing a function selector and configuring the HTTP binding with a predefined data handler.
第二种方法实现函数选择器并为HTTP绑定配置预定义的数据处理器,从而为 ALE接口构建RESTful服务。
Main : the main function creates the socket to be used for listening to connections, and then creates the callback for accept to handle each connection through the event handler.
main:主函数创建用来监听连接的套接字,然后创建accept的回调函数以便通过事件处理函数处理每个连接。
The handler takes an instance of DFATable and USES the move function to transition to a new state given the XML element.
该处理程序获取DFATable的实例,并使用move函数来转换到新状态(在给定xml元素的情况下)。
It abstracts some of the details away and works more like the JMS binding types in Process Server, including their data handler styles, function selectors, and so on.
它提取了一些细节,工作方式更像ProcessServer中的JMS绑定类型,包括它的数据处理程序风格、功能选择器等等。
When the service responds, the callback function in the Rich UI handler is invoked.
当此服务响应时,这个RichUI处理程序中的回调函数将被调用。
In the Listing 5, the DOM is used to lodge an onload event handler which fires the initialize function once the XUL page is fully received.
在清单5中,DOM用来存放一个装载事件处理程序,当XUL页面完全接收时,这个事件激活initialize函数。
This will give you a basic mediation handler class that we can now begin to populate with function to debug incoming web services messages.
这样就可以获得一个基本中介处理程序类,接下来我们可以开始使用调试传入Web服务消息的函数对其进行填充。
Listing 8 is slightly more complex than the previous example because of the sigset function, which assigns a function pointer to a signal handler.
由于使用了sigset函数(它向信号处理程序分配一个函数指针),清单8比前一个示例稍微复杂一点,。
It is very similar to APC in function and sports a user cache component, as well as a built-in session handler to leverage Wincache directly as a session handler.
它在功能上非常类似于apc,且支持一个用户缓存组件,以及一个内置会话处理程序,以将Wincache作为一个会话处理程序直接加以利用。
It is very similar to APC in function and sports a user cache component, as well as a built-in session handler to leverage Wincache directly as a session handler.
它在功能上非常类似于apc,且支持一个用户缓存组件,以及一个内置会话处理程序,以将Wincache作为一个会话处理程序直接加以利用。
应用推荐