var n = 0;
function a(){
var n =1;
function b(){
n++;
alert(n);
}
console.log(n);
return b();
}
var hcs = a();
console.log(n);
var n = 0;
function a(){
var n =1;
function b(){
n++;
alert(n);
}
console.log(n);
return b();
}
var hcs = a();
console.log(n);
本文标题:闭包与作用域0.12018-01-05
本文链接:https://www.haomeiwen.com/subject/ybgsnxtx.html
网友评论