What is (function(){})()?

I just found this function, which confuses me. Here is the example: Result: Looks like a little bit complex. But i will change to another classic example: This function means, immediately-Invoked Function Expression(自执行匿名函数) or IIFE. It executes immediately after it created. In the first parenthesis (), it means an anonymous function(匿名函数), the second parenthesis, it … Continue reading What is (function(){})()?

Advertisements