滑块的移动调用名为fct的回调来改变显示的颜色条的长度,那个回调会调用ProgressBar的value函数来设置新的长度。
Moving the slider changes the length of the displayed color bar by invoking the callback named FCT, which calls the value function on the ProgressBars to set the new length.
清单6显示的是小部件样例的事件处理函数和回调函数。
Listing 6 shows the event handlers and the callback function of the sample widget.
如果注册了一个路径,它就使用定义的回调函数来生成要显示的内容。
If a path is registered, it USES the defined function as a callback to produce the content presented.
清单5中的代码片段显示一个菜单规范,它为一个典型的定制模块定义了回调函数。
The code snippet in Listing 5, repeated from above, shows one such specification to define a simple callback for a typical custom module.
清单4显示了HTTPGET版本函数的回调函数。
Listing 4 shows the callback function for the HTTP GET version function.
清单3中的代码片段显示了onreadystatechange回调函数的典型实例化示例。
The snippet in Listing 3 shows an example of a typical incarnation of the onreadystatechange callback function.
到55行的回调函数updatedivisionscallback处理响应并在Division选项菜单中显示返回的部门名称。
The callback function updateDivisionsCallback from lines 40 to 55 processes the response and displays the returned division names in the division option menu.
以优雅的动画显示所有匹配的元素,并在显示完成后可选地触发一个回调函数。
Show all matched elements using a graceful animation and firing an optional callback after completion.
以优雅的动画显示所有匹配的元素,并在显示完成后可选地触发一个回调函数。
Show all matched elements using a graceful animation and firing an optional callback after completion.
应用推荐