The following code fragment is a typical setup step required for code which USES the publish API.
下面的代码片段是使用发布api的代码所需的典型的设置步骤。
The following code fragment illustrates an event declaration and a procedure in which the event is raised.
下列程序码片段会说明事件宣告和引发事件的程序。
Allows Dojo applications to attach functions to method invocations in other objects. For example, the following code fragment attaches the function foo to the method bar in the object obj.
connect允许Dojo应用程序向其他对象中的方法调用附加函数。
应用推荐