IIFE, the callback function

Callback:

  When the function A is called the function B as a parameter, referred to as B, A callback

IIFE: calls from anonymous function

  (function(){})()

  Role: to prevent pollution of the global namespace

    Hide achieve

Guess you like

Origin www.cnblogs.com/white55k/p/11983340.html