123456789
function f1(){ var n=999; function f2(){ alert(n); } return f2; } var result=f1(); result(); // 999
上面代码产生了闭包
Jinyang
⛳__🕳__🏃♂️💨
Shanghai , China
文章
34
分类
11
标签
33
HTTPS
ES6+
JS
Node.js
Update your browser to view this website correctly. Update my browser now
×