我们定义的函数是在计算时间数据时进行调用的,所以我们也可以在报表的初始化阶段声明它们(见于图10)。
The functions we defined are called when calculating the time data, so we also have to declare them in the initialization phase of the report (see Figure 10).
不幸的是,它将导致图5所示的错误消息,因为在dojo. forEach方法调用中声明的函数创建了一个闭包,该闭包将this定义为引用它本身。
Unfortunately, it will result in the error message shown in Figure 5, because the function declared in the dojo.forEach method call creates a closure that defines this as referring to its own body.
图9:functionListView显示了应用程序调用的函数,以及它们使用的内存量。
Figure 9: the function List View shows the functions being called by an application and the amount of memory they use.
Xdebug将在49次函数调用后介入并得到图2(顺便说一句,main的初始调用用于启动程序计数作为第1次调用)。
Xdebug intervenes after 49 function calls and yields Figure 2. (By the way, the initial invocation of main to launch the program counts as the first frame.)
在图9中,您可以看到我正通过使用视图代替前一图中的表函数,调用相同类型的信息。
In figure 9 you can see that I'm calling the same kind of information by using a view instead of a table function in the previous figure.
图5展示了分析结果:与上次的3192次函数调用相比,这里仅需要30次调用(并且只有一半的调用需要计算结果),而时间则减少为只有20毫秒。
Figure 5 shows the analysis: Instead of 3,192 function calls, only 30 were required (and only half of those computed any result), and time was reduced to 20 milliseconds.
此关系图显示了如何理解和调用ESRI提供的AddressFinderWeb服务的findaddress函数,ESRI是一家全球领先的地理信息系统(GIS)软件供应商。
This diagram shows how to understand and invoke the findAddress function of the Address Finder web services provided by ESRI, the world-leading vendor of Geographic Information Systems (GIS) software.
图6.1表明了这一系列函数调用过程中的栈图。
Figure 6.1 shows what the stack diagram looks like for this sequence of function calls.
在本书的第三章第九节,我们用栈图来表征函数调用过程中程序的状态。
In Section 3.9, we used a stack diagram to represent the state of a program during a function call.
在通过另一个活动调用此关系图表示的活动时使用,或在此关系图描述操作或函数时使用。
Used when the activity represented by the diagram is called from another activity, or when the diagram describes an operation or function.
在通过另一个活动调用此关系图表示的活动时使用,或在此关系图描述操作或函数时使用。
Used when the activity represented by the diagram is called from another activity, or when the diagram describes an operation or function.
应用推荐