3.3.2 函数调用模式(Invocation as a function) 当我们用这种模式来调用函数的时候,函数的上下文(function context)是全局的上下文(global context), .
基于1个网页-相关网页
As you can see, each time a function calls another function, its own values and state are suspended while the next function invocation occurs.
正如您可以看到的一样,每次一个函数调用另外一个函数时,在下一次发生调用时,它自己的值和状态都会被挂起。
However, what if the application wanted to track other data such as the value of certain variables or even attempt to profile the code by recording the duration of a particular function invocation?
但是,若是应用程序想要跟踪其他数据(比如某些变量的值)或者甚至试图通过记录特定的函数调用过程来剖析代码,那么情况又是如何呢?
In this case, the function invocation must be accomplished using a POST request (as opposed to a GET request).
在本例中,这个函数调用必须通过POST请求(而非GET请求)完成。
应用推荐