AO function precompiled objects

Precompiled function AO (Activation Object) Object

AO target load order

1. Create a target AOAO{}

AO{
 }
复制代码

2. All parameters and variables declared within the function (name) stored in the AO object, value is undefined

AO{
  a: undefined,
  b: undefined,
  c: undefined,
 }
复制代码

3. The parameter arguments and unified

AO{
  a: 1,
  b: 2,
  c: undefined,
 }
复制代码

4. The multi-function name some function declarations as AO object key, a function of the overall content value stored in the object ao

AO{
  a: function a(){},
  b: 2,
  c: undefined,
 }
复制代码

The above initialization is completed, the internal function code execution

  • Print a // [Function: a]
  • c = 3
  • Print c // 3
  • Printing b // 2
  • b = function c(){}
  • Print b // [Function: c]

Reproduced in: https: //juejin.im/post/5ced39ed51882530be7b190a

Guess you like

Origin blog.csdn.net/weixin_34248258/article/details/91460966
Recommended