In Listing 2 a circular reference is created by calling the external function myFunction.
在清单2中,通过调用外部函数myfunction创建循环引用。
server to wrap up the data in a call to the function I've specified, in this case myfunction().
服务器将数据封装到指定的函数调用中,即 myfunction()。
The function can take input parameters, which are supplied in parentheses that follow the function name (in this case, myFunction).
函数可接受输入参数,输入参数在紧接着函数名(在本例中为myFunction)之后的圆括号内提供。
If you look at the pre-FPO example for MyFunction, you'd notice that the first instruction in the routine was PUSH EBP followed by a MOV EBP, ESP.
如果你查看FPO之前的示例MyFunction,你会注意到第一个指令按照例行是PUSHEBP后跟着一个MOV EBP, ESP。
The fact that you do not need to call all your functions as window. myFunction(…) is only for convenience and to ease the work of lazy programmers.
不过多数情况中你不需要像这样window.myFunction(…)地调用函数,这样太麻烦了,程序员工作起来会很不方便。
The fact that you do not need to call all your functions as window. myFunction(…) is only for convenience and to ease the work of lazy programmers.
不过多数情况中你不需要像这样window.myFunction(…)地调用函数,这样太麻烦了,程序员工作起来会很不方便。
应用推荐