How to get value in return function

 A function () {
  the console.log (. 1)
  var I = 'Hello'
   return function B () {
    the console.log (2)
    the console.log (I)
  }

}

var A = A ();
the console.log (A) // print out is b () function

Note that the function is not executed at this time b, b in order to perform, can be performed A () ();

Guess you like

Origin www.cnblogs.com/psxiao/p/11373896.html