第二个是当用户单击一单击Item所触发的事件处理函数(event handler function)。本例中我们将函数clickHandler()和checkHandler()定义在代码的最后。
基于16个网页-相关网页
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的回调函数以便通过事件处理函数处理每个连接。
应用推荐