Javascript 菜鸟在这里。在阅读模块模式时。我注意到这个匿名函数在函数范围内有括号。我以前没有用过这个。我想更好地理解它。
// first example
(function(){
//this is IIFE I always use to avoid globle var. I think the simple form of this is F();
})();
// second example
(function () {
//However, what is this concept? what's the formal name of this function?
}());
这两者之间的主要区别是什么?我如何理解第二个例子?