To build the example overview list, the queryAndUpdate function is called from the event handler functions.
要构造示例概要清单,从事件处理函数中调用queryandupdate函数。
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)和为其传递事件处理函数一样简单。
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的回调函数以便通过事件处理函数处理每个连接。
To access the preventDefault function, you must pass the handler event through as a parameter and use it to access the function.
要访问preventdefault函数,您必须传递处理函数(即使作为一个参数)或者使用它访问该函数。
The event handlers are in the second part of the refreshItems function, which contains the event handler for the button bar and the list with update, delete, and create.
事件处理程序位于refreshitems函数的第二部分,其包含了按钮栏和更新、删除以及创建的清单。
This article described how to design processes to implement the cancellation function with the event handler.
本文描述如何设计使用事件处理程序来实现取消操作的流程。
Additionally, you have the option of assigning a custom event handler using bind (' eventname ', function ).
此外,还可以使用bind (' eventname ',function)指定自定义的事件处理程序。
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函数。
Each time the readystate changes, the readystatechange event fires and the handler function attached via the onreadystatechange property is called.
每次readystate变化时,readystatechange事件就触发,由onreadystatechange属性指定的事件处理函数就被调用。
If the function that was passed to bind is provided as the second argument, only that specific event handler is removed.
如果把在绑定时传递的处理函数作为第二个参数,则只有这个特定的事件处理函数会被删除。
Suppose you want a certain ASP. NET function executed on MouseOver overacertain button. Where do you add an event handler?
假设你希望某个ASP.NET函数鼠标悬停在按钮执行。你怎样添加一个事件处理?
By the time your event handler is invoked, the function might be gone.
您的事件处理程序被调用时,该函数可能会消失。
By the time your event handler is invoked, the function might be gone.
您的事件处理程序被调用时,该函数可能会消失。
应用推荐