1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 11:12:21 +00:00

Merge pull request #291 from xhlwill/patch-1

fix: IIFE 不一定是匿名
This commit is contained in:
Ruan YiFeng 2016-12-04 10:23:22 +08:00 committed by GitHub
commit c36509bc06

View File

@ -255,7 +255,7 @@ ES6允许块级作用域的任意嵌套。
}}}}; }}}};
``` ```
块级作用域的出现,实际上使得获得广泛应用的立即执行匿名函数IIFE不再必要了。 块级作用域的出现实际上使得获得广泛应用的立即执行函数IIFE不再必要了。
```javascript ```javascript
// IIFE写法 // IIFE写法